Skip to content

Commit

Permalink
bump infection
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jan 23, 2025
1 parent a68f3d0 commit 9129774
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ControllerNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace Chevere\Tests;

use Chevere\Http\ControllerName;
use Chevere\Http\Interfaces\ControllerInterface;
use Chevere\Tests\src\NullController;
use Chevere\Tests\src\WrongController;
use InvalidArgumentException;
Expand Down Expand Up @@ -45,4 +46,16 @@ public function testConstruct(): void
$controllerName = new ControllerName($name);
$this->assertSame($name, $controllerName->__toString());
}

public function testInterface(): void
{
$this->assertSame(
'HTTP Controller',
ControllerName::symbol()
);
$this->assertSame(
ControllerInterface::class,
ControllerName::interface()
);
}
}
9 changes: 9 additions & 0 deletions tests/MiddlewareNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Chevere\Tests\src\Middleware;
use Chevere\Tests\src\MiddlewareAlt;
use PHPUnit\Framework\TestCase;
use Psr\Http\Server\MiddlewareInterface;
use Throwable;

final class MiddlewareNameTest extends TestCase
Expand All @@ -43,6 +44,14 @@ public function testConstructArgumentsNoSetup(): void
$this->assertSame([], $name->arguments());
}

public function testInterface(): void
{
$this->assertSame(
MiddlewareInterface::class,
MiddlewareName::interface()
);
}

/**
* @dataProvider provideConstructArguments
*/
Expand Down

0 comments on commit 9129774

Please sign in to comment.