瀏覽代碼

[Form] Fixed fatal error in test

Bernhard Schussek 14 年之前
父節點
當前提交
0b0535d30a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/Symfony/Tests/Component/Form/Renderer/Theme/TwigThemeFactoryTest.php

+ 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')
         $template = $this->getMockBuilder('Twig_Template')
             ->disableOriginalConstructor()
             ->disableOriginalConstructor()
-            ->getMock();
+            ->getMockForAbstractClass();
         $theme = $this->factory->create($template);
         $theme = $this->factory->create($template);
 
 
         $this->assertEquals(new TwigTheme($this->environment, $template), $theme);
         $this->assertEquals(new TwigTheme($this->environment, $template), $theme);