File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Filter options
src/Symfony/Bundle/TwigBundle/Tests/Loader Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bundle \TwigBundle \Tests \Loader ;
13
13
14
- use Symfony \Bundle \FrameworkBundle \Templating \TemplateReference ;
15
14
use Symfony \Bundle \TwigBundle \Loader \FilesystemLoader ;
16
15
use Symfony \Bundle \TwigBundle \Tests \TestCase ;
16
+ use Symfony \Component \Templating \TemplateReferenceInterface ;
17
17
18
+ /**
19
+ * @group legacy
20
+ */
18
21
class FilesystemLoaderTest extends TestCase
19
22
{
20
23
public function testGetSourceContext ()
@@ -61,7 +64,7 @@ public function testTwigErrorIfLocatorThrowsInvalid()
61
64
->expects ($ this ->once ())
62
65
->method ('parse ' )
63
66
->with ('name.format.engine ' )
64
- ->willReturn (new TemplateReference ( '' , '' , ' name ' , ' format ' , ' engine ' ))
67
+ ->willReturn ($ this -> getMockBuilder (TemplateReferenceInterface::class)-> getMock ());
65
68
;
66
69
67
70
$ locator = $ this ->getMockBuilder ('Symfony\Component\Config\FileLocatorInterface ' )->getMock ();
@@ -85,7 +88,7 @@ public function testTwigErrorIfLocatorReturnsFalse()
85
88
->expects ($ this ->once ())
86
89
->method ('parse ' )
87
90
->with ('name.format.engine ' )
88
- ->willReturn (new TemplateReference ( '' , '' , ' name ' , ' format ' , ' engine ' ))
91
+ ->willReturn ($ this -> getMockBuilder (TemplateReferenceInterface::class)-> getMock ());
89
92
;
90
93
91
94
$ locator = $ this ->getMockBuilder ('Symfony\Component\Config\FileLocatorInterface ' )->getMock ();
You can’t perform that action at this time.
0 commit comments