File tree 1 file changed +9
-0
lines changed
src/Symfony/Component/DependencyInjection/Tests/Compiler 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,13 @@ public function testEmptyBindingTypehint()
213
213
214
214
public function testIterableBindingTypehint ()
215
215
{
216
+ $ autoloader = static function ($ class ) {
217
+ if ('iterable ' === $ class ) {
218
+ throw new \RuntimeException ('We should not search pseudo-type iterable as class ' );
219
+ }
220
+ };
221
+ spl_autoload_register ($ autoloader );
222
+
216
223
$ container = new ContainerBuilder ();
217
224
$ definition = $ container ->register ('bar ' , NamedIterableArgumentDummy::class);
218
225
$ definition ->setBindings ([
@@ -222,5 +229,7 @@ public function testIterableBindingTypehint()
222
229
$ pass ->process ($ container );
223
230
224
231
$ this ->assertInstanceOf (TaggedIteratorArgument::class, $ container ->getDefinition ('bar ' )->getArgument (0 ));
232
+
233
+ spl_autoload_unregister ($ autoloader );
225
234
}
226
235
}
You can’t perform that action at this time.
0 commit comments