From a4d6df68e98b9724e587a0e69b08de09690a5bcd Mon Sep 17 00:00:00 2001 From: Nico Schoenmaker Date: Thu, 4 Jan 2018 11:46:55 +0100 Subject: [PATCH] Upgrade to PHPUnit 6 --- Tests/GravatarApiTest.php | 3 ++- Tests/Templating/Helper/GravatarHelperTest.php | 3 ++- Tests/Twig/GravatarExtensionTest.php | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Tests/GravatarApiTest.php b/Tests/GravatarApiTest.php index 3358b52..310441f 100644 --- a/Tests/GravatarApiTest.php +++ b/Tests/GravatarApiTest.php @@ -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() { diff --git a/Tests/Templating/Helper/GravatarHelperTest.php b/Tests/Templating/Helper/GravatarHelperTest.php index 92d99d8..14a9b75 100644 --- a/Tests/Templating/Helper/GravatarHelperTest.php +++ b/Tests/Templating/Helper/GravatarHelperTest.php @@ -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; diff --git a/Tests/Twig/GravatarExtensionTest.php b/Tests/Twig/GravatarExtensionTest.php index 76e80d2..caf2e8e 100644 --- a/Tests/Twig/GravatarExtensionTest.php +++ b/Tests/Twig/GravatarExtensionTest.php @@ -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 @@ -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); }