diff --git a/.gitignore b/.gitignore index 7729667..5b49e55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -src/tests/.phpunit.result.cache -src/tests/reports/ +Tests/.phpunit.result.cache +Tests/reports/ .php_cs.cache diff --git a/Tests/phpunit.xml b/Tests/phpunit.xml index 8da5487..e3acd9d 100644 --- a/Tests/phpunit.xml +++ b/Tests/phpunit.xml @@ -23,7 +23,17 @@ - + + + ../ + + + ../.php-cs-fixer.php + ../IntelliSenseHelper.php + ../rector.php + ../Tests/ + + diff --git a/composer.json b/composer.json index 88fb265..9606bdc 100644 --- a/composer.json +++ b/composer.json @@ -66,8 +66,13 @@ }, "scripts": { "php-cs-fixer": "./vendor/bin/php-cs-fixer fix --config=vendor/d3/oxid-twofactor-onetimepassword/.php-cs-fixer.php", + "phpstan": "./vendor/bin/phpstan --configuration=./vendor/d3/oxid-twofactor-onetimepassword/phpstan.neon", + "phpunit": "XDEBUG_MODE=off vendor/bin/phpunit --config=vendor/d3/oxid-twofactor-onetimepassword/Tests/", + "phpunit-line-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --config=vendor/d3/oxid-twofactor-onetimepassword/Tests/ --coverage-html=vendor/d3/oxid-twofactor-onetimepassword/Tests/reports/coverage", + "phpunit-path-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --config=vendor/d3/oxid-twofactor-onetimepassword/Tests/ --coverage-html=vendor/d3/oxid-twofactor-onetimepassword/Tests/reports/coverage --path-coverage", + "phpunuhi": "./vendor/bin/phpunuhi --configuration=vendor/d3/oxid-twofactor-onetimepassword/phpunuhi.xml validate" }, "suggest": {