Skip to content

Commit

Permalink
Use dedicated PHPUnit assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel authored and kelunik committed Nov 14, 2018
1 parent c4faf1f commit 6be5d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Loop/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ public function testLoopStopPreventsTimerExecution()
$loop->stop();
});
});
$this->assertTrue($t + 0.1 > \microtime(1));
$this->assertGreaterThan(\microtime(1), $t + 0.1);
}

public function testDeferEnabledInNextTick()
Expand Down
2 changes: 1 addition & 1 deletion test/PromiseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function testPromiseResolutionWithPromise()
if (!$ex) {
$promise->onResolve(function ($e, $v) use (&$invoked) {
$invoked = true;
$this->assertFalse($v instanceof Promise);
$this->assertNotInstanceOf(Promise::class, $v);
});
$this->assertTrue($invoked);
}
Expand Down

0 comments on commit 6be5d4b

Please sign in to comment.