Add assertions to fix "risky tests" warning

This commit is contained in:
Zach Borboa
2017-03-20 01:42:15 -07:00
parent 4fbfbd8ced
commit 0996917ae0
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -2620,7 +2620,8 @@ class CurlTest extends \PHPUnit\Framework\TestCase
$reflection_method->setAccessible(true);
$curl = new Curl();
$reflection_method->invoke($curl, $response);
$response_headers = $reflection_method->invoke($curl, $response);
$this->assertArrayHasKey('Status-Line', $response_headers);
}
public function testArrayToStringConversion()
+5 -1
View File
@@ -2461,9 +2461,13 @@ class MultiCurlTest extends \PHPUnit\Framework\TestCase
$curl->setOpt(CURLOPT_CUSTOMREQUEST, 'GET');
$curl->setOpt(CURLOPT_HTTPGET, true);
$complete_called = false;
$multi_curl = new MultiCurl();
$multi_curl->addCurl($curl);
$multi_curl->addCurl($curl)->complete(function ($instance) use (&$complete_called) {
$complete_called = true;
});
$multi_curl->start();
$this->assertTrue($complete_called);
}
public function testSequentialId()