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()
3131 $ container = $ this ->createMock (Container::class);
3232 $ templateNameParser = $ this ->getTemplateNameParser ();
3333 $ globalVariables = $ this ->getGlobalVariables ();
34- $ loader = $ this ->getLoader ($ this -> getStorage ( ));
34+ $ loader = $ this ->getLoader (new StringStorage ( ' foo ' ));
3535
3636 $ stopwatch = new Stopwatch ();
3737
@@ -60,17 +60,7 @@ private function getGlobalVariables(): GlobalVariables
6060 return $ this ->createMock (GlobalVariables::class);
6161 }
6262
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
7464 {
7565 $ loader = $ this ->getMockForAbstractClass (Loader::class);
7666 $ loader ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments