Skip to content

Commit e2f1101

Browse files
committed
Fix loop->stop() test and incomplete/skipped marking
1 parent 572c99b commit e2f1101

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Test.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ function testEmptyLoop() {
3333
$this->loop->run();
3434
}
3535

36-
/**
37-
* @expectedException \Exception
38-
*/
39-
function testStopThrowsIfNotCurrentlyRunning() {
36+
function testStopWorksEvenIfNotCurrentlyRunning() {
4037
$this->loop->stop();
4138
}
4239

@@ -703,7 +700,7 @@ function testLoopException() {
703700
*/
704701
function testOnSignalWatcher() {
705702
if (!\extension_loaded("posix")) {
706-
$this->markTestIncomplete("ext/posix required to test signal handlers");
703+
$this->markTestSkipped("ext/posix required to test signal handlers");
707704
}
708705

709706
$this->expectOutputString("caught SIGUSR1");

0 commit comments

Comments
 (0)