From 229f1308b4093d9334bbb6d825c7b75cc236d5e2 Mon Sep 17 00:00:00 2001 From: Thierry Bela Date: Tue, 2 Aug 2022 13:36:04 -0400 Subject: [PATCH] #124 enforce lf for php files --- .gitattributes | 1 + bin/runtest.sh | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index 80b22e89..e05936fe 100755 --- a/.gitattributes +++ b/.gitattributes @@ -23,5 +23,6 @@ # # do not replace lf by crlf *.css text +*.php text text eol=lf diff --git a/bin/runtest.sh b/bin/runtest.sh index 01a80ede..20d342ff 100755 --- a/bin/runtest.sh +++ b/bin/runtest.sh @@ -12,9 +12,9 @@ DIR=$(cd -P -- "$(dirname $(readlink -f "$0"))" && pwd -P) cd "$DIR" unset DIR -[ ! -f "../phpunit.phar" ] && - wget -O ../phpunit.phar https://phar.phpunit.de/phpunit-9.5.11.phar && - chmod +x ../phpunit.phar +#[ ! -f "../phpunit.phar" ] && +# wget -O ../phpunit.phar https://phar.phpunit.de/phpunit-9.5.11.phar && +# chmod +x ../phpunit.phar # # #../phpunit.phar --bootstrap autoload.php src/*.php @@ -30,7 +30,7 @@ fail() { run() { # - php -dmemory_limit=256M ../phpunit.phar -v --colors=always --bootstrap autoload.php --testdox --fail-on-skipped --fail-on-risky --fail-on-incomplete "$@" + php -dmemory_limit=256M ../vendor/bin/phpunit -v --colors=always --bootstrap autoload.php --testdox --fail-on-skipped --fail-on-risky --fail-on-incomplete "$@" } testName() {