Migrate from PHPUnit annotations to native attributes

This commit is contained in:
Alejandro Celaya
2023-02-09 20:42:18 +01:00
parent 650a286982
commit 04bbd471ff
188 changed files with 776 additions and 1082 deletions

View File

@@ -6,6 +6,7 @@ namespace ShlinkioTest\Shlink\Rest\Action\Visit;
use Laminas\Diactoros\Response\JsonResponse;
use Laminas\Diactoros\ServerRequestFactory;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Shlinkio\Shlink\Core\Visit\Model\VisitsStats;
@@ -24,7 +25,7 @@ class GlobalVisitsActionTest extends TestCase
$this->action = new GlobalVisitsAction($this->helper);
}
/** @test */
#[Test]
public function statsAreReturnedFromHelper(): void
{
$apiKey = ApiKey::create();