mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Migrate from PHPUnit annotations to native attributes
This commit is contained in:
@@ -6,6 +6,7 @@ namespace ShlinkioTest\Shlink\Rest\Middleware;
|
||||
|
||||
use Laminas\Diactoros\Response\EmptyResponse;
|
||||
use Mezzio\Router\Middleware\ImplicitOptionsMiddleware;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Http\Message\ResponseFactoryInterface;
|
||||
use ReflectionObject;
|
||||
@@ -20,14 +21,14 @@ class EmptyResponseImplicitOptionsMiddlewareFactoryTest extends TestCase
|
||||
$this->factory = new EmptyResponseImplicitOptionsMiddlewareFactory();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
#[Test]
|
||||
public function serviceIsCreated(): void
|
||||
{
|
||||
$instance = ($this->factory)();
|
||||
self::assertInstanceOf(ImplicitOptionsMiddleware::class, $instance);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
#[Test]
|
||||
public function responsePrototypeIsEmptyResponse(): void
|
||||
{
|
||||
$instance = ($this->factory)();
|
||||
|
||||
Reference in New Issue
Block a user