1#!/usr/bin/env sh
2
3dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../phpunit/phpunit" && pwd)
4
5if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
6   # We are in Cgywin using Windows php, so the path must be translated
7   dir=$(cygpath -m "$dir");
8fi
9
10"${dir}/phpunit" "$@"
11