Valinor/tests/Unit/Mapper/MappingErrorTest.php
2022-01-06 14:11:42 +01:00

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());
}
}