Version 1.0.0
This commit is contained in:
24
tests/Object/ItemTest.php
Normal file
24
tests/Object/ItemTest.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user