From ee4edc8b02d7735d2fc10b9f3d00b09bf9e01246 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Wed, 8 Nov 2017 18:31:27 -0200 Subject: [PATCH] Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase --- composer.json | 2 +- tests/Functional/FunctionalTestCase.php | 3 ++- tests/Unit/FFMpegServiceProviderTest.php | 3 ++- tests/Unit/TestCase.php | 4 +++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index d6bcc1d..302d2b5 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,7 @@ "require-dev": { "sami/sami": "~1.0", "silex/silex": "~1.0", - "phpunit/phpunit": "^4.8" + "phpunit/phpunit": "^4.8.36" }, "autoload": { "psr-0": { diff --git a/tests/Functional/FunctionalTestCase.php b/tests/Functional/FunctionalTestCase.php index 02556ea..a7eac42 100644 --- a/tests/Functional/FunctionalTestCase.php +++ b/tests/Functional/FunctionalTestCase.php @@ -3,8 +3,9 @@ namespace Tests\FFMpeg\Functional; use FFMpeg\FFMpeg; +use PHPUnit\Framework\TestCase; -abstract class FunctionalTestCase extends \PHPUnit_Framework_TestCase +abstract class FunctionalTestCase extends TestCase { /** * @return FFMpeg diff --git a/tests/Unit/FFMpegServiceProviderTest.php b/tests/Unit/FFMpegServiceProviderTest.php index 0321eed..66a4004 100644 --- a/tests/Unit/FFMpegServiceProviderTest.php +++ b/tests/Unit/FFMpegServiceProviderTest.php @@ -4,8 +4,9 @@ namespace Tests\FFMpeg\Unit; use FFMpeg\FFMpegServiceProvider; use Silex\Application; +use PHPUnit\Framework\TestCase as BaseTestCase; -class FFMpegServiceProviderTest extends \PHPUnit_Framework_TestCase +class FFMpegServiceProviderTest extends BaseTestCase { public function testWithConfig() { diff --git a/tests/Unit/TestCase.php b/tests/Unit/TestCase.php index d2912a7..2d366dd 100644 --- a/tests/Unit/TestCase.php +++ b/tests/Unit/TestCase.php @@ -2,7 +2,9 @@ namespace Tests\FFMpeg\Unit; -class TestCase extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase as BaseTestCase; + +class TestCase extends BaseTestCase { public function assertScalar($value) {