Skip to content

Commit

Permalink
Fix incorrect namespace of RendererInterface (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: fd6130 <[email protected]>
  • Loading branch information
fd6130 and fd6130 authored May 27, 2022
1 parent f9c7dbc commit 3bf8db3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"qferr/mjml-php": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "~7.0"
"phpunit/phpunit": "~7.0|~8.0"
},
"scripts": {
"test": "vendor/bin/phpunit tests/"
Expand Down
4 changes: 2 additions & 2 deletions src/Mjml/Twig/MjmlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Qferrer\Mjml\Twig;

use Qferrer\Mjml\Renderer\RendererInterface;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
use Qferrer\Mjml\RendererInterface;
use Twig\Extension\AbstractExtension;

/**
* Class MjmlExtension
Expand Down
8 changes: 4 additions & 4 deletions tests/Mjml/Twig/MjmlExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

namespace Qferrer\Tests\Mjml\Twig;

use PHPUnit\Framework\TestCase;
use Qferrer\Mjml\Renderer\RendererInterface;
use Qferrer\Mjml\Twig\MjmlExtension;
use Twig\Node\Node;
use Twig\TwigFilter;
use PHPUnit\Framework\TestCase;
use Qferrer\Mjml\RendererInterface;
use Qferrer\Mjml\Twig\MjmlExtension;

class MjmlExtensionTest extends TestCase
{
protected $renderer;
protected $extension;

public function setUp()
public function setUp(): void
{
$this->renderer = $this->createMock(RendererInterface::class);
$this->extension = new MjmlExtension($this->renderer);
Expand Down

0 comments on commit 3bf8db3

Please sign in to comment.