mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Fix tests
This commit is contained in:
parent
ba8335a329
commit
5d6295e07d
@ -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(
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user