Skip to content

Commit cd0a03c

Browse files
committed
Fix exception name / warning
1 parent 085afe0 commit cd0a03c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Test.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -588,13 +588,13 @@ function testSignalExecutionOrder()
588588
});
589589
}
590590

591-
/** @expectedException InvalidWatcherException */
591+
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
592592
function testExceptionOnEnableNonexistentWatcher()
593593
{
594594
$this->loop->enable("nonexistentWatcher");
595595
}
596596

597-
/** @expectedException InvalidWatcherException */
597+
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
598598
function testExceptionOnDisableNonexistentWatcher()
599599
{
600600
$this->loop->disable("nonexistentWatcher");
@@ -605,19 +605,19 @@ function testSuccessOnCancelNonexistentWatcher()
605605
$this->loop->cancel("nonexistentWatcher");
606606
}
607607

608-
/** @expectedException InvalidWatcherException */
608+
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
609609
function testExceptionOnReferenceNonexistentWatcher()
610610
{
611611
$this->loop->reference("nonexistentWatcher");
612612
}
613613

614-
/** @expectedException InvalidWatcherException */
614+
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
615615
function testExceptionOnUnreferenceNonexistentWatcher()
616616
{
617617
$this->loop->unreference("nonexistentWatcher");
618618
}
619619

620-
/** @expectedException InvalidWatcherException */
620+
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
621621
function testWatcherInvalidityOnDefer() {
622622
$this->start(function(Driver $loop) {
623623
$loop->defer(function($watcher) use ($loop) {
@@ -626,7 +626,7 @@ function testWatcherInvalidityOnDefer() {
626626
});
627627
}
628628

629-
/** @expectedException InvalidWatcherException */
629+
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
630630
function testWatcherInvalidityOnDelay() {
631631
$this->start(function(Driver $loop) {
632632
$loop->delay($msDelay = 0, function($watcher) use ($loop) {
@@ -1072,11 +1072,11 @@ function testRegistry() {
10721072
$this->assertTrue(is_nan($this->loop->fetchState("foo")));
10731073
$this->loop->storeState("foo", "1");
10741074
$this->assertNull($this->loop->fetchState("bar"));
1075-
$this->loop->storeState("baz", -0.0);
1075+
$this->loop->storeState("baz", -INF);
10761076
// running must not affect state
10771077
$this->loop->defer([$this->loop, "stop"]);
10781078
$this->loop->run();
1079-
$this->assertSame(-INF, @1/$this->loop->fetchState("baz"));
1079+
$this->assertSame(-INF, $this->loop->fetchState("baz"));
10801080
$this->assertSame("1", $this->loop->fetchState("foo"));
10811081
}
10821082

0 commit comments

Comments
 (0)