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