From 348227093494bc386b02f0ebb0f7b4abac3f5c87 Mon Sep 17 00:00:00 2001 From: Alain Peyrat Date: Wed, 24 Oct 2012 14:35:20 +0200 Subject: [PATCH] Update test with relocation of vendor stuff --- tests/code/syntax/SyntaxTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/code/syntax/SyntaxTest.php b/tests/code/syntax/SyntaxTest.php index c726808976..e8188a31e4 100644 --- a/tests/code/syntax/SyntaxTest.php +++ b/tests/code/syntax/SyntaxTest.php @@ -41,8 +41,8 @@ class Syntax_Tests extends PHPUnit_Framework_TestCase public function testUTF8Chars() { $root = dirname(dirname(dirname(dirname(__FILE__)))); - // We don't pass syntax tests on 3rd party libraries in src/lib/vendor - $exclude_third_party_libs="-path '$root/src/lib/vendor' -prune -o "; + // We don't pass syntax tests on 3rd party libraries in src/vendor + $exclude_third_party_libs="-path '$root/src/vendor' -prune -o "; $output = `find $root/src $root/tests $exclude_third_party_libs -name '*.php' -type f -print | xargs isutf8`; $this->assertEquals('', $output); $output = `find $root/src $root/tests $exclude_third_party_libs -name '*.css' -type f -print | xargs isutf8`; @@ -94,8 +94,8 @@ class Syntax_Tests extends PHPUnit_Framework_TestCase public function testEmptyLastLine() { $root = dirname(dirname(dirname(dirname(__FILE__)))); - // We don't pass syntax tests on 3rd party libraries in src/lib/vendor - $exclude_third_party_libs="-path '$root/src/lib/vendor' -prune -o "; + // We don't pass syntax tests on 3rd party libraries in src/vendor + $exclude_third_party_libs="-path '$root/src/vendor' -prune -o "; $output = `find $root/src $root/tests $exclude_third_party_libs -name '*.php' -type f -print | while read i ; do [ -s \$i ] && [ -z "\$(tail -n 1 \$i)" ] && echo \$i ; done`; $this->assertEquals('', $output); } -- 2.30.2