replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -9,16 +9,16 @@
|
||||
|
||||
namespace App\Tests\Export\Spreadsheet;
|
||||
|
||||
use App\Export\Spreadsheet\ColumnDefinition;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Export\Spreadsheet\ColumnDefinition
|
||||
*/
|
||||
#[CoversClass(ColumnDefinition::class)]
|
||||
class ColumnDefinitionTest extends TestCase
|
||||
{
|
||||
public function testConstruct(): void
|
||||
{
|
||||
$sut = new \App\Export\Spreadsheet\ColumnDefinition('foo', 'bar', function () {
|
||||
$sut = new ColumnDefinition('foo', 'bar', function () {
|
||||
return 'hello world';
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user