mirror of
https://github.com/pestphp/pest.git
synced 2026-07-21 17:10:03 +02:00
14 lines
406 B
PHP
14 lines
406 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
use Tests\Fixtures\Covers\CoversClass1;
|
|
|
|
covers([CoversClass1::class]);
|
|
|
|
it('uses the correct PHPUnit attribute for class', function (): void {
|
|
$attributes = new ReflectionClass($this)->getAttributes();
|
|
|
|
expect($attributes[1]->getName())->toBe(CoversClass::class)
|
|
->and($attributes[1]->getArguments()[0])->toBe(CoversClass1::class);
|
|
});
|