Skip to content

Commit

Permalink
Fixing FileWriterTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
chewbakartik committed Apr 5, 2020
1 parent 4f30ddb commit 9933850
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Output/FileWriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public function test_can_write_to_non_existing_path()
* for some reason it wasn't found. Since this is a PHPUnit\TestCase object, I felt
* like this was a safe enough change to make.
*/
if(method_Exists($this, 'expectErrorMessage')) {
$this->expectErrorMessage('Migrations directory "doesntexist" does not exist.');
}
$this->expectExceptionMessage('Migrations directory "doesntexist" does not exist.');

$writer->write('contents', 'filename.php', 'doesntexist');
}
Expand Down

0 comments on commit 9933850

Please sign in to comment.