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()
21
21
{
22
22
$ container = new ContainerBuilder ();
23
23
$ container ->setParameter ('kernel.debug ' , false );
24
+ $ container ->setParameter ('kernel.root_dir ' , __DIR__ );
24
25
25
26
$ container ->register ('twig.app_variable ' , '\Symfony\Bridge\Twig\AppVariable ' );
26
27
$ 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 ' );
27
31
28
32
$ nativeTwigLoader = new Definition ('\Twig_Loader_Filesystem ' );
29
33
$ nativeTwigLoader ->addMethodCall ('addPath ' , array ());
30
34
$ container ->setDefinition ('twig.loader.native_filesystem ' , $ nativeTwigLoader );
31
35
32
36
$ filesystemLoader = new Definition ('\Symfony\Bundle\TwigBundle\Loader\FilesystemLoader ' );
37
+ $ filesystemLoader ->setArguments (array (null , null , null ));
33
38
$ filesystemLoader ->addMethodCall ('addPath ' , array ());
34
39
$ container ->setDefinition ('twig.loader.filesystem ' , $ filesystemLoader );
35
40
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ function () {},
249
249
250
250
// assertEquals() does not like NAN values.
251
251
$ this ->assertEquals ($ array [$ i ][0 ], 'float ' );
252
- $ this ->assertNan ( $ array [$ i ++][1 ]);
252
+ $ this ->assertTrue ( is_nan ( $ array [$ i ++][1 ]) );
253
253
}
254
254
255
255
public function testRecursionInArguments ()
You can’t perform that action at this time.
0 commit comments