You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running PHPUnit 3.6.11 with Selenium tests included. Sometimes I forget to start the Selenium server. If I run the tests, it fails at the first test with a PHP error:
Looking at the code, it seems that the test should just be skipped but instead it completely quits. Looking at the documentation for fsockopen, I don't think it should result in a PHP error so it may be a bug with PHP itself. I am running PHP 5.3.5.
Description:
fsockopen(): unable to connect to localhost:4444 (Connection refused)
I am running PHPUnit 3.6.11 with Selenium tests included. Sometimes I forget to start the Selenium server. If I run the tests, it fails at the first test with a PHP error:
Looking at the code, it seems that the test should just be skipped but instead it completely quits. Looking at the documentation for fsockopen, I don't think it should result in a PHP error so it may be a bug with PHP itself. I am running PHP 5.3.5.
Description:
fsockopen(): unable to connect to localhost:4444 (Connection refused)
Source File:
/usr/share/php/PHPUnit/Extensions/SeleniumTestCase.php(738)
Stack Trace:
#0 fsockopen('localhost',4444,0,'',10)
#1 PHPUnit_Extensions_SeleniumTestCase->skipWithNoServerRunning()
#2 PHPUnit_Extensions_SeleniumTestCase->runTest()
#3 PHPUnit_Framework_TestCase->runBare()
#4 PHPUnit_Framework_TestResult->run(SiteTest)
#5 PHPUnit_Framework_TestCase->run(PHPUnit_Framework_TestResult)
#6 PHPUnit_Extensions_SeleniumTestCase->run(PHPUnit_Framework_TestResult)
#7 PHPUnit_Framework_TestSuite->runTest(SiteTest,PHPUnit_Framework_TestResult)
#8 PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult,,array(0),array(0),)
#9 PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult,,array(0),array(0),)
#10 PHPUnit_TextUI_TestRunner->doRun(PHPUnit_Framework_TestSuite,array(4))
#11 PHPUnit_TextUI_Command->run(array(3),1)
#12 PHPUnit_TextUI_Command::main()
The text was updated successfully, but these errors were encountered: