failed to open stream: No such file or directory

i got the following error when i try test SiteTest.php file ,


C:\wamp\www\demo\protected\tests>phpunit functional\SiteTest.php

PHPUnit 3.6.11 by Sebastian Bergmann.


Configuration read from C:\wamp\www\demo\protected\tests\phpunit.xml


PHP Warning:  include(SiteTest: Firefox.php): failed to open stream: No such file or directory in C:\wamp\www\yii-1.1.10.r3566\framework\YiiBase.php on line 418

PHP Stack trace:

PHP   1. {main}() C:\wamp\bin\php\php5.4.3\phpunit:0

PHP   2. PHPUnit_TextUI_Command::main() C:\wamp\bin\php\php5.4.3\phpunit:46

PHP   3. PHPUnit_TextUI_Command->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:130

PHP   4. PHPUnit_TextUI_TestRunner->doRun() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:192

PHP   5. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\TestRunner.php:325

PHP   6. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:705

PHP   7. method_exists() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:654

PHP   8. YiiBase::autoload() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:0


Warning: include(SiteTest: Firefox.php): failed to open stream: No such file or directory in C:\wamp\www\yii-1.1.10.r3566\framework\YiiBase.php on line 418


Call Stack:

    0.0011     229792   1. {main}() C:\wamp\bin\php\php5.4.3\phpunit:0

    0.0111     624104   2. PHPUnit_TextUI_Command::main() C:\wamp\bin\php\php5.4.3\phpunit:46

    0.0111     629360   3. PHPUnit_TextUI_Command->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:130

    0.1569    5107528   4. PHPUnit_TextUI_TestRunner->doRun() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:192

    0.1647    5423984   5. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\TestRunner.php:325

    0.1647    5425344   6. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:705

    0.1647    5426208   7. method_exists() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:654

    0.1648    5426568   8. YiiBase::autoload() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:0


PHP Warning:  include(): Failed opening 'SiteTest: Firefox.php' for inclusion (include_path='.;C:\wamp\www\demo\protected\components;C:\wamp\www\demo\protected\models;C:\wamp\bin\php\php5.4.3\pear') in C:\wamp\www\yii-1.1.10.r3566\framework\YiiBase.php on line 418

PHP Stack trace:

PHP   1. {main}() C:\wamp\bin\php\php5.4.3\phpunit:0

PHP   2. PHPUnit_TextUI_Command::main() C:\wamp\bin\php\php5.4.3\phpunit:46

PHP   3. PHPUnit_TextUI_Command->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:130

PHP   4. PHPUnit_TextUI_TestRunner->doRun() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:192

PHP   5. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\TestRunner.php:325

PHP   6. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:705

PHP   7. method_exists() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:654

PHP   8. YiiBase::autoload() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:0


Warning: include(): Failed opening 'SiteTest: Firefox.php' for inclusion (include_path='.;C:\wamp\www\demo\protected\components;C:\wamp\www\demo\protected\models;C:\wamp\bin\php\php5.4.3\pear') in C:\wamp\www\yii-1.1.10.r3566\framework\YiiBase.php on line 418


Call Stack:

    0.0011     229792   1. {main}() C:\wamp\bin\php\php5.4.3\phpunit:0

    0.0111     624104   2. PHPUnit_TextUI_Command::main() C:\wamp\bin\php\php5.4.3\phpunit:46

    0.0111     629360   3. PHPUnit_TextUI_Command->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:130

    0.1569    5107528   4. PHPUnit_TextUI_TestRunner->doRun() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:192

    0.1647    5423984   5. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\TestRunner.php:325

    0.1647    5425344   6. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:705

    0.1647    5426208   7. method_exists() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:654

    0.1648    5426568   8. YiiBase::autoload() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:0


PHP Fatal error:  Call to undefined function curl_init() in C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase\Driver.php on line 948

PHP Stack trace:

PHP   1. {main}() C:\wamp\bin\php\php5.4.3\phpunit:0

PHP   2. PHPUnit_TextUI_Command::main() C:\wamp\bin\php\php5.4.3\phpunit:46

PHP   3. PHPUnit_TextUI_Command->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:130

PHP   4. PHPUnit_TextUI_TestRunner->doRun() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:192

PHP   5. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\TestRunner.php:325

PHP   6. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:705

PHP   7. PHPUnit_Framework_TestSuite->runTest() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:745

PHP   8. PHPUnit_Extensions_SeleniumTestCase->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:772

PHP   9. PHPUnit_Framework_TestCase->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:643

PHP  10. PHPUnit_Framework_TestResult->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestCase.php:751

PHP  11. PHPUnit_Framework_TestCase->runBare() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestResult.php:649

PHP  12. PHPUnit_Extensions_SeleniumTestCase->runTest() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestCase.php:804

PHP  13. PHPUnit_Extensions_SeleniumTestCase->prepareTestSession() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:778

PHP  14. SiteTest->start() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:759

PHP  15. CWebTestCase->__call() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:759

PHP  16. PHPUnit_Extensions_SeleniumTestCase->__call() C:\wamp\www\yii-1.1.10.r3566\framework\test\CWebTestCase.php:64

PHP  17. call_user_func_array() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:863

PHP  18. PHPUnit_Extensions_SeleniumTestCase_Driver->start() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:863

PHP  19. PHPUnit_Extensions_SeleniumTestCase_Driver->getString() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase\Driver.php:170

PHP  20. PHPUnit_Extensions_SeleniumTestCase_Driver->doCommand() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase\Driver.php:1055


Fatal error: Call to undefined function curl_init() in C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase\Driver.php on line 948


Call Stack:

    0.0011     229792   1. {main}() C:\wamp\bin\php\php5.4.3\phpunit:0

    0.0111     624104   2. PHPUnit_TextUI_Command::main() C:\wamp\bin\php\php5.4.3\phpunit:46

    0.0111     629360   3. PHPUnit_TextUI_Command->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:130

    0.1569    5107528   4. PHPUnit_TextUI_TestRunner->doRun() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\Command.php:192

    0.1647    5423984   5. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\TextUI\TestRunner.php:325

    0.1647    5425344   6. PHPUnit_Framework_TestSuite->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:705

    0.1685    5426720   7. PHPUnit_Framework_TestSuite->runTest() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:745

    0.1685    5426752   8. PHPUnit_Extensions_SeleniumTestCase->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestSuite.php:772

    0.1685    5426984   9. PHPUnit_Framework_TestCase->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:643

    0.1686    5428120  10. PHPUnit_Framework_TestResult->run() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestCase.php:751

    0.1716    5490312  11. PHPUnit_Framework_TestCase->runBare() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestResult.php:649

    0.1743    5612080  12. PHPUnit_Extensions_SeleniumTestCase->runTest() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Framework\TestCase.php:804

    0.1783    5612584  13. PHPUnit_Extensions_SeleniumTestCase->prepareTestSession() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:778

    0.1783    5617256  14. SiteTest->start() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:759

    0.1783    5617432  15. CWebTestCase->__call() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:759

    0.1783    5617432  16. PHPUnit_Extensions_SeleniumTestCase->__call() C:\wamp\www\yii-1.1.10.r3566\framework\test\CWebTestCase.php:64

    0.1783    5617848  17. call_user_func_array() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:863

    0.1783    5618008  18. PHPUnit_Extensions_SeleniumTestCase_Driver->start() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase.php:863

    0.1783    5618632  19. PHPUnit_Extensions_SeleniumTestCase_Driver->getString() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase\Driver.php:170

    0.1783    5618688  20. PHPUnit_Extensions_SeleniumTestCase_Driver->doCommand() C:\wamp\bin\php\php5.4.3\pear\PHPUnit\Extensions\SeleniumTestCase\Driver.php:1055




C:\wamp\www\demo\protected\tests>

any idea , what should i do …

Check if you have phpunit and curl extension installed correctly.

check this post there is answer by dimitry

http://www.yiiframework.com/forum/index.php/topic/30511-firefoxphp-faild-to-include-in-yiibase/

please do look up forum before you post it in the forum chances are somebody else had the same problem