We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec38de5 commit 2016000Copy full SHA for 2016000
tests/Unit/Rules/ParsingErrorsTest.php
@@ -81,4 +81,17 @@ public function test_convert_to_array(): void
81
82
$this->assertEquals($expected, $this->parsingStore->toArray());
83
}
84
+
85
+ public function test_get_iterable(): void
86
+ {
87
+ $parsingError = ParsingError::create(
88
+ 'App\Controller\Foo',
89
+ 'Syntax error, unexpected T_STRING on line 8'
90
+ );
91
92
+ $this->parsingStore->add($parsingError);
93
+ $iterable = $this->parsingStore->getIterator();
94
95
+ $this->assertEquals([$this->parsingError, $parsingError], iterator_to_array($iterable));
96
+ }
97
0 commit comments