Skip to content

Commit 76085b8

Browse files
committed
Fix redundant type casts
1 parent fc0fd74 commit 76085b8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Tests/Templating/TimedPhpEngineTest.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff 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())

0 commit comments

Comments
 (0)