mirror of
https://github.com/pestphp/pest.git
synced 2026-07-22 01:20:03 +02:00
13 lines
422 B
PHP
13 lines
422 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\Attributes\CoversFunction;
|
|
|
|
function testCoversFunction(): void {}
|
|
|
|
it('uses the correct PHPUnit attribute for function', function (): void {
|
|
$attributes = new ReflectionClass($this)->getAttributes();
|
|
|
|
expect($attributes[1]->getName())->toBe(CoversFunction::class)
|
|
->and($attributes[1]->getArguments()[0])->toBe('testCoversFunction');
|
|
})->coversFunction('testCoversFunction');
|