We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05cf667 commit 163d2c8Copy full SHA for 163d2c8
tests/FileTest.php
@@ -32,7 +32,12 @@ public function testReadInvalidFile(): void
32
public function testWriteInvalidFile(): void
33
{
34
$this->expectException(CouldNotWriteFileException::class);
35
- $this->expectExceptionMessage('Could not write file: / (file_put_contents(/): failed to open stream: Is a directory)');
+ if (PHP_VERSION_ID >= 80000) {
36
+ $this->expectExceptionMessage('Could not write file: / (file_put_contents(/): Failed to open stream: Is a directory)');
37
+ }
38
+ if (PHP_VERSION_ID < 80000) {
39
+ $this->expectExceptionMessage('Could not write file: / (file_put_contents(/): failed to open stream: Is a directory)');
40
41
FileWriter::write('/', '');
42
}
43
0 commit comments