We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f30ddb commit 9933850Copy full SHA for 9933850
tests/Output/FileWriterTest.php
@@ -15,9 +15,7 @@ public function test_can_write_to_non_existing_path()
15
* for some reason it wasn't found. Since this is a PHPUnit\TestCase object, I felt
16
* like this was a safe enough change to make.
17
*/
18
- if(method_Exists($this, 'expectErrorMessage')) {
19
- $this->expectErrorMessage('Migrations directory "doesntexist" does not exist.');
20
- }
+ $this->expectExceptionMessage('Migrations directory "doesntexist" does not exist.');
21
22
$writer->write('contents', 'filename.php', 'doesntexist');
23
}
0 commit comments