1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00

Fix tests

This commit is contained in:
Niklas Keller 2017-06-17 14:01:05 +02:00
parent ba8335a329
commit 5d6295e07d
2 changed files with 9 additions and 1 deletions

View File

@ -39,6 +39,10 @@ class EvReactorTest extends ReactorTest {
\Amp\cancel($watcherId);
}
/**
* @expectedException \Exception
* @expectedExceptionMessage coroutine error
*/
public function testImmediateCoroutineResolutionError() {
if (\extension_loaded("xdebug")) {
$this->markTestSkipped(
@ -49,6 +53,10 @@ class EvReactorTest extends ReactorTest {
}
}
/**
* @expectedException \Exception
* @expectedExceptionMessage coroutine error
*/
public function testOnErrorFailure() {
if (\extension_loaded("xdebug")) {
$this->markTestSkipped(

View File

@ -23,7 +23,7 @@ class UvReactorTest extends ReactorTest {
public function testGetLoop() {
$result = \Amp\reactor()->getLoop();
$this->assertInternalType("resource", $result);
$this->assertTrue(\is_resource($result) || $result instanceof \UVLoop);
}
public function testOnSignalWatcherKeepAliveRunResult() {