File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function testThatRenderLogsTime()
31
31
$ container = $ this ->createMock (Container::class);
32
32
$ templateNameParser = $ this ->getTemplateNameParser ();
33
33
$ globalVariables = $ this ->getGlobalVariables ();
34
- $ loader = $ this ->getLoader ($ this -> getStorage ( ));
34
+ $ loader = $ this ->getLoader (new StringStorage ( ' foo ' ));
35
35
36
36
$ stopwatch = new Stopwatch ();
37
37
@@ -60,17 +60,7 @@ private function getGlobalVariables(): GlobalVariables
60
60
return $ this ->createMock (GlobalVariables::class);
61
61
}
62
62
63
- private function getStorage (): StringStorage
64
- {
65
- return $ this ->getMockBuilder (StringStorage::class)
66
- ->disableOriginalConstructor ()
67
- ->getMockForAbstractClass ();
68
- }
69
-
70
- /**
71
- * @param StringStorage $storage
72
- */
73
- private function getLoader ($ storage ): Loader
63
+ private function getLoader (StringStorage $ storage ): Loader
74
64
{
75
65
$ loader = $ this ->getMockForAbstractClass (Loader::class);
76
66
$ loader ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments