Skip to content

Commit 5940a6f

Browse files
committed
446: ensure PHP binary tests are only run on Linux
1 parent 71f8b75 commit 5940a6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/Platform/TargetPhp/PhpBinaryPathTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ public function testNonExecutablePhpBinaryIsRejected(): void
8686
PhpBinaryPath::fromPhpBinaryPath(__FILE__);
8787
}
8888

89+
#[RequiresOperatingSystemFamily('Linux')]
8990
public function testInvalidPhpBinaryIsRejected(): void
9091
{
9192
$this->expectException(InvalidPhpBinaryPath::class);
9293
$this->expectExceptionMessage('does not appear to be a PHP binary');
9394
PhpBinaryPath::fromPhpBinaryPath(self::FAKE_PHP_EXECUTABLE);
9495
}
9596

97+
#[RequiresOperatingSystemFamily('Linux')]
9698
public function testInvalidVersion(): void
9799
{
98100
$phpBinary = PhpBinaryPath::fromPhpBinaryPath(self::PHP_INVALID_VERSION);

0 commit comments

Comments
 (0)