From 1ab1bcc2a52cb41c80e9fd39fa07d9d5bcf3ddca Mon Sep 17 00:00:00 2001 From: Jens Krause Date: Wed, 24 Apr 2019 08:31:12 +0700 Subject: [PATCH 1/3] add test script again --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index ba56468..4ed65a5 100644 --- a/composer.json +++ b/composer.json @@ -15,5 +15,8 @@ "preferred-install": { "*": "dist" } + }, + "scripts": { + "test": "phpunit -c phpunit.xml" } } From d8a774446c8a48d6321737019e368b2c94283408 Mon Sep 17 00:00:00 2001 From: Jens Krause Date: Wed, 24 Apr 2019 08:35:12 +0700 Subject: [PATCH 2/3] add php unit to dev- dependencies --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 4ed65a5..f7e1e1a 100644 --- a/composer.json +++ b/composer.json @@ -5,6 +5,9 @@ "require": { "symplify/easy-coding-standard": "^2.2.0" }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, "autoload": { "psr-4": { "CrazyFactory\\Sniffs\\": "src/CrazyFactory/Sniffs/" From 4e653fe0c04b4298ad2fd083fb13d32888dacfd7 Mon Sep 17 00:00:00 2001 From: Jens Krause Date: Wed, 24 Apr 2019 08:48:00 +0700 Subject: [PATCH 3/3] fix test --- .../Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CrazyFactory/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed b/src/CrazyFactory/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed index 83239c9..773e41e 100644 --- a/src/CrazyFactory/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed +++ b/src/CrazyFactory/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed @@ -226,7 +226,7 @@ if (1 === $a) : if ($b) { echo 'b'; } -else { + else { echo 'not b'; } else :