#!/bin/bash
set -e

BASH_XTRACEFD=1
set -x

patch -p1 < debian/patches/DEP-8/Use-installed-class-for-DEP-8-tests.patch
phpunit && exit_code=0 || exit_code=$?
patch -Rp1 < debian/patches/DEP-8/Use-installed-class-for-DEP-8-tests.patch
exit $exit_code
