Yii Framework Forum: failed to open stream: No such file or directory - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

failed to open stream: No such file or directory Rate Topic: -----

#1 User is offline   moata 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 09-July 12

Posted 09 July 2012 - 08:46 PM

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 ...
0

#2 User is offline   fail 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 11-October 09

Posted 03 August 2012 - 06:01 PM

Check if you have phpunit and curl extension installed correctly.
0

#3 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 830
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 10 August 2012 - 01:31 AM

check this post there is answer by dimitry


http://www.yiiframew...ude-in-yiibase/

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users