From 02f668da132c8b49f6f244d4b2feff6e93a7f8d9 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2019 07:51:56 +0000 Subject: [PATCH 1/2] Build(deps-dev): Bump localheinz/test-util from 0.7.0 to 0.8.0 Bumps [localheinz/test-util](https://github.com/localheinz/test-util) from 0.7.0 to 0.8.0. - [Release notes](https://github.com/localheinz/test-util/releases) - [Changelog](https://github.com/localheinz/test-util/blob/master/CHANGELOG.md) - [Commits](https://github.com/localheinz/test-util/compare/0.7.0...0.8.0) Signed-off-by: dependabot-preview[bot] --- composer.json | 2 +- composer.lock | 46 +++++++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/composer.json b/composer.json index 79aa22da..fd345fa4 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "infection/infection": "~0.13.6", "localheinz/php-cs-fixer-config": "~1.24.0", "localheinz/phpstan-rules": "~0.13.0", - "localheinz/test-util": "~0.7.0", + "localheinz/test-util": "~0.8.0", "phpbench/phpbench": "~0.16.10", "phpstan/phpstan": "~0.11.19", "phpstan/phpstan-deprecation-rules": "~0.11.2", diff --git a/composer.lock b/composer.lock index e9721b6f..3f017dac 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0199e408c4a4144529c38bc2058eb5ac", + "content-hash": "55f56f382896285c434cf035d2008f61", "packages": [], "packages-dev": [ { @@ -506,16 +506,16 @@ }, { "name": "fzaninotto/faker", - "version": "v1.8.0", + "version": "v1.9.0", "source": { "type": "git", "url": "https://github.com/fzaninotto/Faker.git", - "reference": "f72816b43e74063c8b10357394b6bba8cb1c10de" + "reference": "27a216cbe72327b2d6369fab721a5843be71e57d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/f72816b43e74063c8b10357394b6bba8cb1c10de", - "reference": "f72816b43e74063c8b10357394b6bba8cb1c10de", + "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/27a216cbe72327b2d6369fab721a5843be71e57d", + "reference": "27a216cbe72327b2d6369fab721a5843be71e57d", "shasum": "" }, "require": { @@ -524,13 +524,11 @@ "require-dev": { "ext-intl": "*", "phpunit/phpunit": "^4.8.35 || ^5.7", - "squizlabs/php_codesniffer": "^1.5" + "squizlabs/php_codesniffer": "^2.9.2" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "1.8-dev" - } + "branch-alias": [] }, "autoload": { "psr-4": { @@ -552,7 +550,7 @@ "faker", "fixtures" ], - "time": "2018-07-12T10:23:15+00:00" + "time": "2019-11-14T13:13:06+00:00" }, { "name": "infection/infection", @@ -909,30 +907,32 @@ }, { "name": "localheinz/test-util", - "version": "0.7.0", + "version": "0.8.0", "source": { "type": "git", "url": "https://github.com/localheinz/test-util.git", - "reference": "340d168a637f33e9f0d41e8c950c7e1e8bb6b19f" + "reference": "75a2719bc7bb846219adb3379fda5ce79cc9091b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/localheinz/test-util/zipball/340d168a637f33e9f0d41e8c950c7e1e8bb6b19f", - "reference": "340d168a637f33e9f0d41e8c950c7e1e8bb6b19f", + "url": "https://api.github.com/repos/localheinz/test-util/zipball/75a2719bc7bb846219adb3379fda5ce79cc9091b", + "reference": "75a2719bc7bb846219adb3379fda5ce79cc9091b", "shasum": "" }, "require": { - "fzaninotto/faker": "^1.7.1", + "fzaninotto/faker": "^1.8.0", "localheinz/classy": "0.3.0", - "php": "^7.1" + "php": "^7.2" }, "require-dev": { - "infection/infection": "~0.8.2", - "localheinz/php-cs-fixer-config": "~1.14.0", - "phpstan/phpstan": "~0.9.2", - "phpstan/phpstan-phpunit": "~0.9.4", - "phpstan/phpstan-strict-rules": "~0.9.0", - "phpunit/phpunit": "^6.0.0 || ^7.0.0" + "infection/infection": "~0.11.4", + "localheinz/composer-normalize": "^1.0.0", + "localheinz/php-cs-fixer-config": "~1.23.0", + "localheinz/phpstan-rules": "~0.5.0", + "phpstan/phpstan": "~0.10.5", + "phpstan/phpstan-phpunit": "~0.10.0", + "phpstan/phpstan-strict-rules": "~0.10.1", + "phpunit/phpunit": "^7.5.16 || ^8.0.0" }, "type": "library", "autoload": { @@ -958,7 +958,7 @@ "phpunit", "test" ], - "time": "2018-06-25T06:22:47+00:00" + "time": "2019-10-22T18:17:06+00:00" }, { "name": "lstrojny/functional-php", From c23d7dd9fd80c9cec7a30b9a936db37d8abf17a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 18 Nov 2019 14:28:46 +0100 Subject: [PATCH 2/2] Fix: Invoke static method statically --- test/AutoReview/SrcCodeTest.php | 2 +- test/Unit/PrinterTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/AutoReview/SrcCodeTest.php b/test/AutoReview/SrcCodeTest.php index 946873bb..1020e6bf 100644 --- a/test/AutoReview/SrcCodeTest.php +++ b/test/AutoReview/SrcCodeTest.php @@ -27,7 +27,7 @@ final class SrcCodeTest extends Framework\TestCase public function testSrcClassesHaveUnitTests(): void { - $this->assertClassesHaveTests( + self::assertClassesHaveTests( __DIR__ . '/../../src', 'Localheinz\\Json\\Printer\\', 'Localheinz\\Json\\Printer\\Test\\Unit\\' diff --git a/test/Unit/PrinterTest.php b/test/Unit/PrinterTest.php index 841576c6..437d90df 100644 --- a/test/Unit/PrinterTest.php +++ b/test/Unit/PrinterTest.php @@ -29,12 +29,12 @@ final class PrinterTest extends Framework\TestCase public function testImplementsPrinterInterface(): void { - $this->assertClassImplementsInterface(PrinterInterface::class, Printer::class); + self::assertClassImplementsInterface(PrinterInterface::class, Printer::class); } public function testPrintRejectsInvalidJson(): void { - $json = $this->faker()->realText(); + $json = self::faker()->realText(); $printer = new Printer(); @@ -77,7 +77,7 @@ public function providerInvalidIndent(): \Generator $values = [ 'string-contains-line-feed' => " \n ", 'string-mixed-space-and-tab' => " \t", - 'string-not-whitespace' => $this->faker()->sentence, + 'string-not-whitespace' => self::faker()->sentence, ]; foreach ($values as $key => $value) {