From 7df9e3e28401a07c196ebea6d64f049077758b6c Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Wed, 21 Jan 2026 09:37:51 +0100 Subject: [PATCH] Compare X.Y.Z version without suffix --- test/unit/Platform/TargetPhp/PhpBinaryPathTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/Platform/TargetPhp/PhpBinaryPathTest.php b/test/unit/Platform/TargetPhp/PhpBinaryPathTest.php index 80badbc..3bf6b74 100644 --- a/test/unit/Platform/TargetPhp/PhpBinaryPathTest.php +++ b/test/unit/Platform/TargetPhp/PhpBinaryPathTest.php @@ -51,7 +51,7 @@ use const PHP_MAJOR_VERSION; use const PHP_MINOR_VERSION; use const PHP_OS_FAMILY; -use const PHP_VERSION; +use const PHP_RELEASE_VERSION; #[CoversClass(PhpBinaryPath::class)] final class PhpBinaryPathTest extends TestCase @@ -117,7 +117,7 @@ public function testVersionFromCurrentProcess(): void $phpBinary = PhpBinaryPath::fromCurrentProcess(); self::assertSame( - PHP_VERSION, + PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION, $phpBinary->version(), );