Quellcode durchsuchen

[Form] Fixed fatal error in test

Bernhard Schussek vor 14 Jahren
Ursprung
Commit
0b0535d30a

+ 1 - 1
tests/Symfony/Tests/Component/Form/Renderer/Theme/TwigThemeFactoryTest.php

@@ -39,7 +39,7 @@ class TwigThemeFactoryTest extends \PHPUnit_Framework_TestCase
     {
         $template = $this->getMockBuilder('Twig_Template')
             ->disableOriginalConstructor()
-            ->getMock();
+            ->getMockForAbstractClass();
         $theme = $this->factory->create($template);
 
         $this->assertEquals(new TwigTheme($this->environment, $template), $theme);