From 68d1fce1a5eff41eb7a0259be48e990fbe5a45ae Mon Sep 17 00:00:00 2001 From: Cody Phillips Date: Sun, 4 Jun 2017 22:34:57 -0700 Subject: [PATCH] fix: phpcs and phpunit for php 5.3 --- composer.json | 4 ++-- phpunit.xml.dist | 1 - tests/Integration/AesTest.php | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index a64d74a..e8b2b61 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "php": ">=5.3" }, "require-dev": { - "squizlabs/php_codesniffer": "^3.0", - "phpunit/phpunit": "^6.2" + "squizlabs/php_codesniffer": "^2.0", + "phpunit/phpunit": "^4.0" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3a70d62..3d6b0bc 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -3,7 +3,6 @@ bootstrap="./vendor/autoload.php" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" - checkForUnintentionallyCoveredCode="true" forceCoversAnnotation="true" > diff --git a/tests/Integration/AesTest.php b/tests/Integration/AesTest.php index d5dcda1..100ed59 100755 --- a/tests/Integration/AesTest.php +++ b/tests/Integration/AesTest.php @@ -2,12 +2,12 @@ namespace PhpAes\Aes\Tests\Integration; use PhpAes\Aes; -use PHPUnit\Framework\TestCase; +use PHPUnit_Framework_TestCase; /** * @coversDefaultClass \PhpAes\Aes */ -class AesTest extends TestCase +class AesTest extends PHPUnit_Framework_TestCase { /** * Test the cipher