@@ -15,6 +15,9 @@ |
||
15 | 15 | */ |
16 | 16 | class ObjectDumpIteratorTest extends \PHPUnit_Framework_TestCase { |
17 | 17 | |
18 | + /** |
|
19 | + * @param string[] $lines |
|
20 | + */ |
|
18 | 21 | private function getIteratorWithReaderReturning( $lines ) { |
19 | 22 | return ( new JsonDumpFactory() )->newObjectDumpIterator( new FakeDumpReader( $lines ) ); |
20 | 23 | } |
@@ -18,6 +18,9 @@ |
||
18 | 18 | $reader->nextJsonLine(); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $expectedId |
|
23 | + */ |
|
21 | 24 | private function assertFindsEntity( GzDumpReader $reader, $expectedId ) { |
22 | 25 | $line = $reader->nextJsonLine(); |
23 | 26 | $this->assertJson( $line ); |
@@ -18,6 +18,9 @@ |
||
18 | 18 | $reader->nextJsonLine(); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $expectedId |
|
23 | + */ |
|
21 | 24 | private function assertFindsEntity( GzDumpReader $reader, $expectedId ) { |
22 | 25 | $line = $reader->nextJsonLine(); |
23 | 26 | $this->assertJson( $line ); |