25 lines
609 B
PHP
25 lines
609 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Diffhead\PHP\DataEnrichmentKit\Interface;
|
|
|
|
use Diffhead\PHP\DataEnrichmentKit\Object\Item;
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
use PHPUnit\Framework\Attributes\CoversMethod;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
#[CoversClass(Item::class)]
|
|
#[CoversMethod(Item::class, 'key')]
|
|
#[CoversMethod(Item::class, 'alias')]
|
|
class ItemTest extends TestCase
|
|
{
|
|
public function testProperlyInitialized(): void
|
|
{
|
|
$item = new Item('key', 'alias');
|
|
|
|
$this->assertEquals('key', $item->key());
|
|
$this->assertEquals('alias', $item->alias());
|
|
}
|
|
}
|