Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
dev tools added [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Dec 19, 2018
1 parent 73aec45 commit ee4a925
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
21 changes: 18 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,29 @@
"nikic/fast-route": "^1.3"
},
"require-dev": {
"phpunit/phpunit": "^7.2",
"php-coveralls/php-coveralls": "^1.0",
"roave/security-advisories": "dev-master",
"phpunit/phpunit": "^7.5",
"php-coveralls/php-coveralls": "^1.1",
"phpunit/phpcov": "^5.0",
"zendframework/zend-diactoros": "^1.8"
"zendframework/zend-diactoros": "^1.8",
"squizlabs/php_codesniffer": "^3.3",
"phpstan/phpstan": "^0.10.6"
},
"autoload": {
"psr-4": {
"Selami\\Router\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"tests\\": "test/"
}
},
"scripts": {
"unit-tests": "vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml --configuration ./phpunit.xml",
"phpstan": "vendor/bin/phpstan analyse -l 7 src",
"phpstan-test": "vendor/bin/phpstan analyse -l 7 -c phpstan.test.neon test",
"phpcs": "vendor/bin/phpcs --standard=PSR2 src test",
"phpcbf": "vendor/bin/phpcbf --standard=PSR2 src test"
}
}
5 changes: 5 additions & 0 deletions phpstan.test.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
ignoreErrors:
- '#Call to an undefined method Selami\\Router\\Router::get\(\)#' # magic
- '#Call to an undefined method Selami\\Router\\Router::post\(\)#' # magic
- '#Call to an undefined method Selami\\Router\\Router::nonAvalibleHTTPMethod\(\)#' # testing not available method

0 comments on commit ee4a925

Please sign in to comment.