diff --git a/.gitignore b/.gitignore index 3d4b9b6..9a8c46e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ vendor composer.lock .phpunit.result.cache +/data/ \ No newline at end of file diff --git a/composer.json b/composer.json index e62ccb5..0c80ab7 100644 --- a/composer.json +++ b/composer.json @@ -23,13 +23,16 @@ "@tests-spec" ], "tests": "phpunit tests", - "analyze": "phpstan analyse --level max src", + "analyze": "phpstan analyse --level max", "tests-spec": "phpspec run --no-interaction" }, "require-dev": { "phpspec/phpspec": "^6.2", - "phpunit/phpunit": "^9.3", - "phpstan/phpstan": "^0.12" + "phpunit/phpunit": "^9.4", + "phpstan/phpstan": "^0.12.51", + "phpstan/phpstan-deprecation-rules": "^0.12.4", + "phpstan/phpstan-phpunit": "^0.12.16", + "squizlabs/php_codesniffer": "^3.5.5" }, "autoload": { "psr-4": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..773f149 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,8 @@ +includes: + - vendor/phpstan/phpstan-phpunit/extension.neon + - vendor/phpstan/phpstan-deprecation-rules/rules.neon +parameters: + tmpDir: data + level: max + paths: + - src \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..a2d1acc --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,11 @@ + + + + + ./tests/ + + + \ No newline at end of file