Skip to content

Commit e103771

Browse files
committed
tests: remove PHP 7 special cases
1 parent 213ef10 commit e103771

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tests/ErrorFormatterTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected static function getTableDecoration(): string
6161

6262
private function getOutputStream(): StreamOutput
6363
{
64-
if (PHP_VERSION_ID >= 80000 && DIRECTORY_SEPARATOR === '\\') {
64+
if (DIRECTORY_SEPARATOR === '\\') {
6565
$this->markTestSkipped('Skipped because of https://github.com/symfony/symfony/issues/37508');
6666
}
6767
if ($this->outputStream === null) {

tests/Unit/FileTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ public function testReadInvalidFile(): void
3434
public function testWriteInvalidFile(): void
3535
{
3636
$this->expectException(CouldNotWriteFileException::class);
37-
if (PHP_VERSION_ID >= 80000) {
38-
$this->expectExceptionMessage('Could not write file: / (file_put_contents(/): Failed to open stream: Is a directory)');
39-
}
40-
if (PHP_VERSION_ID < 80000) {
41-
$this->expectExceptionMessage('Could not write file: / (file_put_contents(/): failed to open stream: Is a directory)');
42-
}
37+
$this->expectExceptionMessage('Could not write file: / (file_put_contents(/): Failed to open stream: Is a directory)');
4338
FileWriter::write('/', '');
4439
}
4540

0 commit comments

Comments
 (0)