Skip to content

Commit

Permalink
Remove requires
Browse files Browse the repository at this point in the history
  • Loading branch information
NaokiTsuchiya committed Apr 26, 2024
1 parent eacc75e commit 527f3fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions tests/NamedParameterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public function testCameCaseParam(): void
$this->assertSame(['userId' => 'koriym', 'userRole' => 'lead'], (array) $ro->body);
}

/** @requires PHP >= 8.1 */
public function testEnumParam(): void
{
$ro = new EnumParam();
Expand All @@ -130,7 +129,6 @@ public function testEnumParam(): void
);
}

/** @requires PHP >= 8.1 */
public function testEnumInvlidType(): void
{
$this->expectException(ParameterEnumTypeException::class);
Expand All @@ -140,7 +138,6 @@ public function testEnumInvlidType(): void
$this->params->getParameters([$ro, 'onGet'], $params);
}

/** @requires PHP >= 8.1 */
public function testWithResourceClient(): void
{
$resource = (new Injector(new ResourceModule('FakeVendor\Sandbox')))->getInstance(ResourceInterface::class);
Expand All @@ -150,7 +147,6 @@ public function testWithResourceClient(): void
$this->assertSame(['stringBacked' => 'foo', 'intBacked' => 1], $body);
}

/** @requires PHP >= 8.1 */
public function testEnumParamWithResourceClient(): void
{
$this->expectException(ParameterInvalidEnumException::class);
Expand All @@ -160,7 +156,6 @@ public function testEnumParamWithResourceClient(): void
$resource->get('page://self/enum-param', $params);
}

/** @requires PHP >= 8.1 */
public function testNotBackedEnumParamWithResourceClient(): void
{
$this->expectException(NotBackedEnumException::class);
Expand Down
3 changes: 0 additions & 3 deletions tests/ShortSyntaxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ protected function setUp(): void
$this->resource = $injector->getInstance(ResourceInterface::class);
}

/** @requires PHP 7.0.0 */
public function testShortSyntax(): void
{
$ro = $this->resource->get('page://self/index', ['id' => 'koriym']);
$this->assertInstanceOf(Index::class, $ro);
$this->assertSame('koriym', $ro->body);
}

/** @requires PHP 7.0.0 */
public function testShortSyntaxWithQuery(): void
{
$ro = $this->resource->get->uri('page://self/index?id=koriym')();
Expand Down Expand Up @@ -63,7 +61,6 @@ public function testShortSyntaxReuseRequest(AbstractRequest $index): void
$this->assertSame('bear', $ro->body);
}

/** @requires PHP 7.0.0 */
public function testShortSyntaxFunctionWithDefaultGetMethod(): void
{
$ro = $this->resource->uri('page://self/index')();
Expand Down

0 comments on commit 527f3fc

Please sign in to comment.