I'm running UI test using the Simple Test. Below is the code.
<?php
require_once('simpletest/autorun.php');
require_once('simpletest/web_tester.php');
class TestOfRankings extends WebTestCase {
function testWeAreTopOfGoogle() {
$this->get('https://ua-useast1a01-01-internalip.qa.host.net/ultraadmin/');
}
}
?>
I'm getting below error:
E_WARNING: fclose() expects parameter 1 to be resource, boolean given in /home/okhatav/PHP/simpletest/socket.php on line 255 Exception 1! Unexpected PHP error [fclose() expects parameter 1 to be resource, boolean given] severity [2] in [/home/okhatav/PHP/simpletest/socket.php line 255] in testWeAreTopOfGoogle in TestOfRankings 1) Error reading socket [Cannot open [ua-useast1a01-01-internalip.qa.host.net:443] with [] within [15] seconds] in testWeAreTopOfGoogle in TestOfRankings FAILURES!!!
I've downloaded simpletest and run the exact same code and received a similar but slightly more informative message:
This indicates the URL specified is not valid or is having trouble resolving. Trying to access the URL directly results in the following:
Changing it to a valid URL works without error.
While it may not be related, if you compare the network map of the host in question to that of the recent Dyn attacks it lines up almost perfectly. You could try contacting the host to see if they're aware of the issue.