From 6d5d35549a59240a44bfb3d85a49a9403d0b9827 Mon Sep 17 00:00:00 2001 From: Nikita Pimenov Date: Thu, 13 Jun 2024 12:40:01 +0400 Subject: [PATCH] chore: allow max PHP version 8.3.x --- test/unit/ConfigurationTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/ConfigurationTest.php b/test/unit/ConfigurationTest.php index 00a3837b9..54f953bce 100755 --- a/test/unit/ConfigurationTest.php +++ b/test/unit/ConfigurationTest.php @@ -105,7 +105,7 @@ public function testPHPRuntime() $this->assertTrue($php->isOptional()); // max & min test. - $php = new \common_configuration_PHPRuntime('7.4', '8.1.x'); + $php = new \common_configuration_PHPRuntime('7.4', '8.3.x'); $report = $php->check(); $this->assertEquals($report->getStatus(), \common_configuration_Report::VALID); @@ -175,7 +175,7 @@ public function testPHPExtension() $report = $ext->check(); $this->assertEquals($report->getStatus(), \common_configuration_Report::VALID); - $ext->setMax('8.2'); + $ext->setMax('8.3.x'); $report = $ext->check(); $this->assertEquals($report->getStatus(), \common_configuration_Report::VALID); @@ -322,7 +322,7 @@ public function testSimpleComponentCollection() public function testComponentFactory() { - $component = \common_configuration_ComponentFactory::buildPHPRuntime('5.0', '8.1.x', true); + $component = \common_configuration_ComponentFactory::buildPHPRuntime('5.0', '8.3.x', true); $this->assertInstanceOf(\common_configuration_PHPRuntime::class, $component); $this->assertEquals($component->getMin(), '5.0'); // 5.5.x will be replaced internally @@ -365,7 +365,7 @@ public function testComponentFactory() $this->assertInstanceOf(\common_configuration_Report::class, $report); $this->assertEquals($report->getStatus(), \common_configuration_Report::VALID); - $array = ['type' => 'PHPRuntime', 'value' => ['min' => '5.0', 'max' => '8.1.x', 'optional' => true]]; + $array = ['type' => 'PHPRuntime', 'value' => ['min' => '5.0', 'max' => '8.3.x', 'optional' => true]]; $component = \common_configuration_ComponentFactory::buildFromArray($array); $this->assertInstanceOf(\common_configuration_PHPRuntime::class, $component); $this->assertEquals($component->getMin(), '5.0');