Skip to content

Commit

Permalink
Add dep phpunit; Add composer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schindler committed May 11, 2023
1 parent 4b5ebd8 commit ad6510c
Show file tree
Hide file tree
Showing 2 changed files with 1,637 additions and 13 deletions.
20 changes: 17 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
{
"scripts": {
"dev": "php -S localhost:8080 -t src/",
"test": "composer run test:static && composer run test:unit",
"test:unit": "php vendor/bin/phpunit tests/",
"test:static": "php vendor/bin/phpstan analyse -c .phpstan.neon --memory-limit 500M"
},
"autoload": {
"classmap": [
"src"
]
},
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-pdo": "*",
"ext-json": "*",
"phpstan/phpstan": "^1.9"
"ext-json": "*"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10"
}
}
Loading

0 comments on commit ad6510c

Please sign in to comment.