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:
parent
46d068252b
commit
6622299be5
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user