Commit 9ef1ef7a authored by Jeremy Mikola's avatar Jeremy Mikola

Use Composer-installed PHPUnit for make test

Process isolation cannot be used for test execution because ReadPreference and similar driver classes cannot be serialized (see: PHPC-850).
parent 869710ae
.PHONY: composer test .PHONY: composer test
COMPOSER_ARGS=update --no-interaction --prefer-source COMPOSER_ARGS=update --no-interaction --prefer-source
PHPUNIT_ARGS=--process-isolation
composer: composer:
@command -v composer >/dev/null 2>&1; \ @command -v composer >/dev/null 2>&1; \
...@@ -15,12 +14,4 @@ composer: ...@@ -15,12 +14,4 @@ composer:
fi fi
test: composer test: composer
@command -v phpunit >/dev/null 2>&1; \ vendor/bin/phpunit
if test $$? -eq 0; then \
phpunit $(PHPUNIT_ARGS); \
elif test -r phpunit.phar; then \
php phpunit.phar $(PHPUNIT_ARGS); \
else \
echo >&2 "Cannot find phpunit; aborting."; \
false; \
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment