unit testing - Unexpected PHP error [fclose() expects parameter 1 to be resource, boolean given] severity [2] in [simpletest/socket.php line 255] -


i have been using simpletest basic testing of project. want basic checks on pages make sure things continue working develop. have hit few issues though.

first tried using class webtestcase, received 403 when attempting connect google , same error below. switched using normal unittestcase , simplebrowser helper class provided simpletest. using this, can connect google no issue, still same error when attempting reach own site.

unexpected php error [fclose() expects parameter 1 resource, boolean given] severity [2] in [simpletest/socket.php line 255]

class testofbasicfunctionality extends unittestcase {     function testgooglebrowser()     {         $browser = &new simplebrowser();         $browser->get('https://www.google.com');         $this->assertequal($browser->gettitle(), 'google');         $this->assertequal($browser->getresponsecode(), 200);     }      function testindexbrowser()     {         $browser = &new simplebrowser();         $browser->get('https://subdomain.mywebsite.com/');         $this->assertequal($browser->getresponsecode(), 200);     } } 

in end, dont understand going wrong. if code complex, can understand did wrong. however, these simple tests, , don't see mistakes. thought there settings on server preventing connection happening.

can me? simpletest problem, coding fault, or issue server settings?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -