Skip to content

Commit

Permalink
Fix broken assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranmcnulty committed Apr 21, 2023
1 parent a966a7b commit 0d9b12a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion features/bootstrap/FilesystemContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ public function iHaveNotConfiguredAnAutoloader()
*/
public function thereShouldBeNoFile($path)
{
Assert::assertFileNotExists($path);
if (method_exists(Assert::class, 'assertFileDoesNotExist')) {
Assert::assertFileDoesNotExist($path);
}
elseif (method_exists(Assert::class, 'assertFileNotExists')) {
Assert::assertFileNotExists($path);
}
else {
Assert::assertFalse(file_exists($path));
}
}
}

0 comments on commit 0d9b12a

Please sign in to comment.