#!/bin/sh

set -eu

phpabtpl --require-file /usr/share/php/phing/autoload.php 2>/dev/null 1> debian/autoload-tests.php.tpl

mkdir -p vendor
phpab --output vendor/autoload.php \
	--template debian/autoload-tests.php.tpl tests/

PHING_AUTOLOAD="vendor/autoload.php" \
PHING_SOURCE="/usr/share/php/phing/" \
	phpunit \
		-d intl.default_locale=en \
		--no-coverage \
		--do-not-cache-result \
		--display-skipped \
		--configuration tests/phpunit.xml
