diff --git a/Makefile b/Makefile index 43f7b46..d24c058 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,19 @@ -tester = vendor/bin/tester +src_dir = src/ +tester_bin = vendor/bin/tester tests_dir = tests/ coverage_name = $(tests_dir)coverage.html -php_ini = $(tests_dir)php-unix.ini php_bin = php +phpstan_bin = phpstan -.PHONY: test coverage clean +.PHONY: test coverage clean phpstan test: - @$(tester) -p $(php_bin) -c $(php_ini) $(tests_dir) + @$(tester_bin) -p $(php_bin) -C $(tests_dir) coverage: - @$(tester) -p $(php_bin) -c $(php_ini) --coverage $(coverage_name) --coverage-src src/ $(tests_dir) + @$(tester_bin) -p $(php_bin) -C -d zend_extension=xdebug --coverage $(coverage_name) --coverage-src $(src_dir) $(tests_dir) clean: @rm -f $(coverage_name) + +phpstan: + @$(phpstan_bin) diff --git a/tests/php-unix.ini b/tests/php-unix.ini deleted file mode 100644 index 7575ed0..0000000 --- a/tests/php-unix.ini +++ /dev/null @@ -1,2 +0,0 @@ -[Zend] -zend_extension=xdebug.so