Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/SeleniumTestCase.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\Yii_Framework118\framework\test\CWebTestCase.php on line 11
สาเหตุเพราะ pear ที่เราติดตั้ง ไม่ได้ ติดตั้ง Selenium ไว้ด้วย จึงทำให้ Testcase ของเราหาไฟล์ SeleniumTestCase.php ไม่เจอ
วิธีรแก้โดย ติดตั้ง PHPUnit_Selenium เพิ่มลงไปใน Pear PHPUnit
ด้วยคำสั่ง
โค้ด: เลือกทั้งหมด
D:\xampp\php>pear install phpunit/PHPUnit_Selenium