diff --git a/.gitignore b/.gitignore index 5826402..7cfd555 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ composer.phar composer.lock .DS_Store +.phpunit.result.cache diff --git a/composer.json b/composer.json index 6bb70a4..534d3e9 100644 --- a/composer.json +++ b/composer.json @@ -13,11 +13,11 @@ ], "minimum-stability": "dev", "require": { - "php": ">=5.6" + "php": ">=7.2" }, "require-dev": { - "squizlabs/php_codesniffer": "^2.8", - "phpunit/phpunit": "5.7" + "phpunit/phpunit": "8.*", + "squizlabs/php_codesniffer": "3.*" }, "autoload": { "psr-4": { "PostTypes\\": "src/" } diff --git a/tests/ColumnsTest.php b/tests/ColumnsTest.php index 0cf08f9..65c3359 100644 --- a/tests/ColumnsTest.php +++ b/tests/ColumnsTest.php @@ -5,7 +5,7 @@ class ColumnsTest extends TestCase { - public function setUp() + protected function setUp(): void { $this->columns = new Columns; } diff --git a/tests/PostTypeTest.php b/tests/PostTypeTest.php index b5467a3..712b6b4 100644 --- a/tests/PostTypeTest.php +++ b/tests/PostTypeTest.php @@ -6,7 +6,8 @@ class PostTypeTest extends TestCase { - public function setUp() { + protected function setUp(): void + { // setup basic PostType $this->books = new PostType('book'); } diff --git a/tests/TaxonomyTest.php b/tests/TaxonomyTest.php index 0d4cf5b..60a340a 100644 --- a/tests/TaxonomyTest.php +++ b/tests/TaxonomyTest.php @@ -6,7 +6,7 @@ class TaxonomyTest extends TestCase { - public function setUp() + protected function setUp(): void { $this->genres = new Taxonomy('genre'); }