File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Bundle/TwigBundle/Tests/DependencyInjection/Compiler
Component/Debug/Tests/Exception Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,20 @@ public function testProcessDoesNotDropExistingFileLoaderMethodCalls()
2121 {
2222 $ container = new ContainerBuilder ();
2323 $ container ->setParameter ('kernel.debug ' , false );
24+ $ container ->setParameter ('kernel.root_dir ' , __DIR__ );
2425
2526 $ container ->register ('twig.app_variable ' , '\Symfony\Bridge\Twig\AppVariable ' );
2627 $ container ->register ('templating ' , '\Symfony\Bundle\TwigBundle\TwigEngine ' );
28+ $ container ->register ('twig.extension.yaml ' );
29+ $ container ->register ('twig.extension.debug.stopwatch ' );
30+ $ container ->register ('twig.extension.expression ' );
2731
2832 $ nativeTwigLoader = new Definition ('\Twig_Loader_Filesystem ' );
2933 $ nativeTwigLoader ->addMethodCall ('addPath ' , array ());
3034 $ container ->setDefinition ('twig.loader.native_filesystem ' , $ nativeTwigLoader );
3135
3236 $ filesystemLoader = new Definition ('\Symfony\Bundle\TwigBundle\Loader\FilesystemLoader ' );
37+ $ filesystemLoader ->setArguments (array (null , null , null ));
3338 $ filesystemLoader ->addMethodCall ('addPath ' , array ());
3439 $ container ->setDefinition ('twig.loader.filesystem ' , $ filesystemLoader );
3540
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ function () {},
249249
250250 // assertEquals() does not like NAN values.
251251 $ this ->assertEquals ($ array [$ i ][0 ], 'float ' );
252- $ this ->assertNan ( $ array [$ i ++][1 ]);
252+ $ this ->assertTrue ( is_nan ( $ array [$ i ++][1 ]) );
253253 }
254254
255255 public function testRecursionInArguments ()
You can’t perform that action at this time.
0 commit comments