Skip to content

Commit a9b0c4b

Browse files
Do not use var_dump()
1 parent 343c54e commit a9b0c4b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/end-to-end/mock-objects/generator/return_type_declarations_generator_empty_by_default.phpt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ $generator = new \PHPUnit\Framework\MockObject\Generator;
1515

1616
$mock = $generator->getMock('Foo');
1717

18-
var_dump(iterator_to_array($mock->forTraversable()));
19-
var_dump(iterator_to_array($mock->forGenerator()));
20-
var_dump(iterator_to_array($mock->forIterable()));
18+
print count(iterator_to_array($mock->forTraversable())) . PHP_EOL;
19+
print count(iterator_to_array($mock->forGenerator())) . PHP_EOL;
20+
print count(iterator_to_array($mock->forIterable())) . PHP_EOL;
2121
--EXPECTF--
22-
array(0) {
23-
}
24-
array(0) {
25-
}
26-
array(0) {
27-
}
22+
0
23+
0
24+
0

0 commit comments

Comments
 (0)