1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-02-21 06:32:36 +01:00

Test for Items::getJsonPointers()

This commit is contained in:
Filip Halaxa 2022-01-26 14:37:07 +01:00
parent 46d068252b
commit 6622299be5

View File

@ -127,4 +127,11 @@ class ItemsTest extends \PHPUnit_Framework_TestCase
$this->assertSame('/-/one', $items->getMatchedJsonPointer());
}
public function testGetJsonPointers()
{
$items = Items::fromString('[]', ['pointer' => ['/one', '/two']]);
$this->assertSame(['/one', '/two'], $items->getJsonPointers());
}
}