mirror of
https://github.com/halaxa/json-machine.git
synced 2025-01-17 13:08:16 +01:00
Test with iterator_count()
This commit is contained in:
parent
9f8c415b8a
commit
fa261d2523
@ -139,4 +139,11 @@ class ItemsTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertSame(['/one', '/two'], $items->getJsonPointers());
|
||||
}
|
||||
|
||||
public function testCountViaIteratorCount()
|
||||
{
|
||||
$items = Items::fromIterable(['{"results":', '[1,2,3]}'], ['pointer' => ['/results']]);
|
||||
|
||||
$this->assertSame(3, iterator_count($items));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user