#!/bin/sh
set -eu

cp -a debian/autoload.tests.php.tpl phpunit.xml tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

mkdir --parents ./vendor
phpab --output ./vendor/autoload.php --template ./autoload.tests.php.tpl --tolerant ./tests
phpunit --no-coverage  --do-not-cache-result
