From 2502ff814685fc717025ac954533e8bdb0d29339 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Mon, 28 May 2018 18:39:37 +0200 Subject: [PATCH] Two different exception messages are possible for the same error --- tests/Adapters/FileTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' + ); } /**