Skip to content

Commit 9933850

Browse files
committed
Fixing FileWriterTest.
1 parent 4f30ddb commit 9933850

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Output/FileWriterTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ public function test_can_write_to_non_existing_path()
1515
* for some reason it wasn't found. Since this is a PHPUnit\TestCase object, I felt
1616
* like this was a safe enough change to make.
1717
*/
18-
if(method_Exists($this, 'expectErrorMessage')) {
19-
$this->expectErrorMessage('Migrations directory "doesntexist" does not exist.');
20-
}
18+
$this->expectExceptionMessage('Migrations directory "doesntexist" does not exist.');
2119

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

0 commit comments

Comments
 (0)