Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Mar 13, 2018
1 parent c363a35 commit 1cb2f2a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mvc/Templating/Tests/Twig/TemplateTest.php
Expand Up @@ -10,8 +10,9 @@

use eZ\Publish\Core\MVC\Legacy\Templating\Twig\Template;
use eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine;
use eZ\Publish\Core\MVC\Legacy\Templating\Twig\Environment;
use PHPUnit\Framework\TestCase;
use Twig_Environment;
use Twig_Loader_Array;

class TemplateTest extends TestCase
{
Expand All @@ -23,7 +24,7 @@ class TemplateTest extends TestCase
private $legacyEngine;

/**
* @var \PHPUnit_Framework_MockObject_MockObject
* @var \Twig_Environment
*/
private $twigEnv;

Expand All @@ -36,7 +37,7 @@ protected function setUp()
{
parent::setUp();
$this->legacyEngine = $this->createMock(LegacyEngine::class);
$this->twigEnv = $this->createMock(Environment::class);
$this->twigEnv = new Twig_Environment(new Twig_Loader_Array());
$this->template = new Template(self::TEMPLATE_NAME, $this->twigEnv, $this->legacyEngine);
}

Expand Down

0 comments on commit 1cb2f2a

Please sign in to comment.