#!/usr/bin/env bash

PHP_BINARY=${PHP_BINARY:-php}

${PHP_BINARY} -d assert.exception=On -d zend.assertions=1 ./phpunit --configuration ./build/config/github-ci-fail.xml

if [ $? -eq 0 ]; then
  echo "This test should have failed.";
  false;
else
  echo "This test has failed as expected.";
fi
