Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Commit

Permalink
Upgrade to PHPUnit 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Schoenmaker committed Jan 4, 2018
1 parent 4ae9688 commit a4d6df6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Tests/GravatarApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Ornicar\GravatarBundle\Tests;

use Ornicar\GravatarBundle\GravatarApi;
use PHPUnit\Framework\TestCase;

class GravatarApiTest extends \PHPUnit_Framework_TestCase
class GravatarApiTest extends TestCase
{
public function testGravatarUrlWithDefaultOptions()
{
Expand Down
3 changes: 2 additions & 1 deletion Tests/Templating/Helper/GravatarHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Ornicar\GravatarBundle\GravatarApi;
use Ornicar\GravatarBundle\Templating\Helper\GravatarHelper;
use PHPUnit\Framework\TestCase;

class GravatarHelperTest extends \PHPUnit_Framework_TestCase
class GravatarHelperTest extends TestCase
{
protected $helper;

Expand Down
5 changes: 3 additions & 2 deletions Tests/Twig/GravatarExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Ornicar\GravatarBundle\Templating\Helper\GravatarHelperInterface;
use Ornicar\GravatarBundle\Twig\GravatarExtension;
use PHPUnit\Framework\TestCase;

class GravatarExtensionTest extends \PHPUnit_Framework_TestCase
class GravatarExtensionTest extends TestCase
{
/**
* @var GravatarHelperInterface
Expand All @@ -23,7 +24,7 @@ public function setUp()
$this->markTestSkipped('Twig_Extension cannot be found');
}

$this->helper = $this->getMock('Ornicar\GravatarBundle\Templating\Helper\GravatarHelperInterface');
$this->helper = $this->createMock('Ornicar\GravatarBundle\Templating\Helper\GravatarHelperInterface');
$this->extension = new GravatarExtension($this->helper);
}

Expand Down

0 comments on commit a4d6df6

Please sign in to comment.