#!/bin/sh
set -eu

cp -a phpunit.xml.dist tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
phpabtpl --require eluceo/ical > ./autoload.tests.php.tpl 2>&1
mkdir -p ./vendor
phpab --output ./vendor/autoload.php --template ./autoload.tests.php.tpl ./tests/Eluceo/iCal
phpunit --no-coverage --do-not-cache-result --display-deprecations --display-phpunit-deprecations
