8000 [TwigBundle] adapt TemplateDoesNotExists test to Twig 3 expectation · symfony/symfony@c2427d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2427d0

Browse files
committed
[TwigBundle] adapt TemplateDoesNotExists test to Twig 3 expectation
Twig3 FilesystemLoader::findTemplate() should return `string|null` instead of Twig2 `string|null|false`: see <https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php#L167> Change the test to assert `null` instead of `false`.
1 parent 6e44447 commit c2427d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/TwigBundle/Tests/Loader/FilesystemLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ public function testTwigSoftErrorIfTemplateDoesNotExist()
123123

124124
$method = new \ReflectionMethod('Symfony\Bundle\TwigBundle\Loader\FilesystemLoader', 'findTemplate');
125125
$method->setAccessible(true);
126-
$this->assertFalse($method->invoke($loader, 'name.format.engine', false));
126+
$this->assertNull($method->invoke($loader, 'name.format.engine', false));
127127
}
128128
}

0 commit comments

Comments
 (0)
0