Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
vendor
composer.lock
.phpunit.result.cache
/data/
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 8 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation = "./vendor/phpunit/phpunit/phpunit.xsd"
cacheResultFile="./data/phpunit.result.cache"
colors = "true">
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>