File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ public function testSetAutocompleterValuesInvalid($values)
157157 public function testSetAutocompleterValuesWithTraversable ()
158158 {
159159 $ question1 = new Question ('Test question 1 ' );
160- $ iterator1 = $ this ->getMockForAbstractClass (\IteratorAggregate::class);
160+ $ iterator1 = $ this ->createMock (\IteratorAggregate::class);
161161 $ iterator1
162162 ->expects ($ this ->once ())
163163 ->method ('getIterator ' )
164164 ->willReturn (new \ArrayIterator (['Potato ' ]));
165165 $ question1 ->setAutocompleterValues ($ iterator1 );
166166
167167 $ question2 = new Question ('Test question 2 ' );
168- $ iterator2 = $ this ->getMockForAbstractClass (\IteratorAggregate::class);
168+ $ iterator2 = $ this ->createMock (\IteratorAggregate::class);
169169 $ iterator2
170170 ->expects ($ this ->once ())
171171 ->method ('getIterator ' )
You can’t perform that action at this time.
0 commit comments