Skip to content

Commit

Permalink
Remove PHP version check
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Dec 1, 2024
1 parent b959895 commit 16b3bf4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/Handlers/Strategies/RequestResponseNamedArgsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use RuntimeException;
use Slim\Handlers\Strategies\RequestResponseNamedArgs;
use Slim\Tests\TestCase;

Expand All @@ -29,16 +28,6 @@ public function setUp(): void
$this->response = $this->createMock(ResponseInterface::class);
}

public function testCreatingRequestResponseNamedArgsThrowsRuntimeExceptionForPHPOlderThan80()
{
if (PHP_VERSION_ID >= self::PHP_8_0_VERSION_ID) {
$this->markTestSkipped('Test only valid for PHP versions older than 8.0');
}

$this->expectException(RuntimeException::class);
new RequestResponseNamedArgs();
}

public function testCallingWithEmptyArguments()
{
if (PHP_VERSION_ID < self::PHP_8_0_VERSION_ID) {
Expand Down

0 comments on commit 16b3bf4

Please sign in to comment.