25 lines
642 B
PHP
25 lines
642 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Diffhead\PHP\DataEnrichmentKit\Tests\Object;
|
|
|
|
use Diffhead\PHP\DataEnrichmentKit\Object\Target;
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
use PHPUnit\Framework\Attributes\CoversMethod;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
#[CoversClass(Target::class)]
|
|
#[CoversMethod(Target::class, 'entity')]
|
|
#[CoversMethod(Target::class, 'field')]
|
|
class TargetTest extends TestCase
|
|
{
|
|
public function testProperlyInitialized(): void
|
|
{
|
|
$target = new Target('entity', 'field');
|
|
|
|
$this->assertEquals('entity', $target->entity());
|
|
$this->assertEquals('field', $target->field());
|
|
}
|
|
}
|