diff --git a/composer.json b/composer.json index ba56468..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/" @@ -15,5 +18,8 @@ "preferred-install": { "*": "dist" } + }, + "scripts": { + "test": "phpunit -c phpunit.xml" } } 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 :