mirror of
https://github.com/danog/Valinor.git
synced 2024-12-14 01:57:26 +01:00
22 lines
449 B
PHP
22 lines
449 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace CuyZ\Valinor\Tests\Unit\Mapper;
|
|
|
|
use CuyZ\Valinor\Mapper\MappingError;
|
|
use CuyZ\Valinor\Tests\Fake\Mapper\FakeNode;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class MappingErrorTest extends TestCase
|
|
{
|
|
public function test_node_can_be_retrieved(): void
|
|
{
|
|
$node = FakeNode::any();
|
|
|
|
$mappingError = new MappingError($node);
|
|
|
|
self::assertSame($node, $mappingError->node());
|
|
}
|
|
}
|