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`;
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);
}