diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-18 03:02:19 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-18 03:02:19 +0300 |
commit | 95f2f6d4fb56af8970b1c0e1245178245f044d95 (patch) | |
tree | c05b5c2aa8db3802a109b468a45065371ae2f564 /tests | |
parent | feddb6d0ef77d28ed28c473946923af4e9128926 (diff) |
Fixed test.....
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/ReleaseCheckListTest.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/ReleaseCheckListTest.php b/tests/PHPUnit/Integration/ReleaseCheckListTest.php index f6bbc7a0bd..763c3b7424 100644 --- a/tests/PHPUnit/Integration/ReleaseCheckListTest.php +++ b/tests/PHPUnit/Integration/ReleaseCheckListTest.php @@ -157,6 +157,11 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase $files = Filesystem::globr(PIWIK_INCLUDE_PATH, '*.php'); foreach($files as $file) { + // skip files in these folders + if (strpos($file, '/libs/') !== false) { + continue; + } + $handle = fopen($file, "r"); $expectedStart = "<?php"; @@ -251,7 +256,7 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase strpos($file, '/tests/') !== false || strpos($file, '/lang/') !== false || strpos($file, 'yuicompressor') !== false || - strpos($file, '/libs/bower_components') !== false || + strpos($file, '/libs/') !== false || (strpos($file, '/vendor') !== false && strpos($file, '/vendor/piwik') === false) || strpos($file, '/tmp/') !== false ) { @@ -259,7 +264,7 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase } // skip files with these file extensions - if (preg_match('/\.(bmp|fdf|gif|deb|deflate|exe|gz|ico|jar|jpg|p12|pdf|png|rar|swf|vsd|z|zip|ttf|so|dat|eps|phar|pyc|gzip)$/', $file)) { + if (preg_match('/\.(bmp|fdf|gif|deb|deflate|exe|gz|ico|jar|jpg|p12|pdf|png|rar|swf|vsd|z|zip|ttf|so|dat|eps|phar|pyc|gzip|eot|woff|svg)$/', $file)) { continue; } @@ -312,6 +317,11 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase { $errors = array(); foreach ($files as $file) { + // skip files in these folders + if (strpos($file, '/libs/') !== false) { + continue; + } + $function = "imagecreatefrom" . $format; if (!function_exists($function)) { throw new \Exception("Unexpected error: $function function does not exist!"); |