Skip to content

Commit 7df9e3e

Browse files
committed
Compare X.Y.Z version without suffix
1 parent 1cf5c59 commit 7df9e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/Platform/TargetPhp/PhpBinaryPathTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
use const PHP_MAJOR_VERSION;
5252
use const PHP_MINOR_VERSION;
5353
use const PHP_OS_FAMILY;
54-
use const PHP_VERSION;
54+
use const PHP_RELEASE_VERSION;
5555

5656
#[CoversClass(PhpBinaryPath::class)]
5757
final class PhpBinaryPathTest extends TestCase
@@ -117,7 +117,7 @@ public function testVersionFromCurrentProcess(): void
117117
$phpBinary = PhpBinaryPath::fromCurrentProcess();
118118

119119
self::assertSame(
120-
PHP_VERSION,
120+
PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION,
121121
$phpBinary->version(),
122122
);
123123

0 commit comments

Comments
 (0)