Skip to content

Commit

Permalink
tests: Handle 8.2/8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Apr 2, 2024
1 parent 6b22733 commit 6a5c69e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Integrations/CodeIgniter/V3_1/CommonScenariosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testScenarioGetWithView()

public function testScenarioGetWithExceptionCgi()
{
if (!self::codeIgniterCgiCheck()) {
if (!self::codeIgniterCgiCheck() || PHP_VERSION_ID >= 80200) {
$this->markTestSkipped('Skip: Test only runs with cgi SAPIs');
}

Expand All @@ -68,7 +68,7 @@ public function testScenarioGetWithExceptionCgi()

public function testScenarioGetToMissingRouteCgi()
{
if (!self::codeIgniterCgiCheck()) {
if (!self::codeIgniterCgiCheck() || PHP_VERSION_ID >= 80200) {
$this->markTestSkipped('Skip: Test only runs with cgi SAPIs');
}

Expand All @@ -84,7 +84,7 @@ public function testScenarioGetToMissingRouteCgi()

public function testScenarioGetWithException()
{
if (self::codeIgniterCgiCheck()) {
if (self::codeIgniterCgiCheck() && PHP_VERSION_ID < 80200) {
$this->markTestSkipped('Skip: Test doesn\'t run with cgi SAPIs');
}

Expand All @@ -100,7 +100,7 @@ public function testScenarioGetWithException()

public function testScenarioGetToMissingRoute()
{
if (self::codeIgniterCgiCheck()) {
if (self::codeIgniterCgiCheck() && PHP_VERSION_ID < 80200) {
$this->markTestSkipped('Skip: Test doesn\'t run with cgi SAPIs');
}

Expand Down

0 comments on commit 6a5c69e

Please sign in to comment.