diff --git a/tests/Adapters/FileTest.php b/tests/Adapters/FileTest.php index 863677c7..7b6d425e 100644 --- a/tests/Adapters/FileTest.php +++ b/tests/Adapters/FileTest.php @@ -90,7 +90,10 @@ public function testDoesntExist(LoopInterface $loop, FilesystemInterface $filesy $rejectionReason = $e->getMessage(); } - $this->assertEquals("Path doesn't exist", $rejectionReason); + $this->assertTrue( + $rejectionReason === 'Path doesn\'t exist' || + $rejectionReason === 'No such file or directory' + ); } /**