diff --git a/lib/.gitignore b/lib/.gitignore index db8232362..aeb628c79 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -13,9 +13,7 @@ # ArchiveTar /pear/archive_tar/docs /pear/archive_tar/scripts -/pear/archive_tar/tests /pear/archive_tar/sync-php4 -/pear/console_getopt/tests # Emogrifier /pelago/emogrifier/.github @@ -33,4 +31,3 @@ /twig/twig/doc /twig/twig/test /twig/twig/drupal_test.sh -/symfony/twig-bundle/Tests diff --git a/sources/Composer/iTopComposer.php b/sources/Composer/iTopComposer.php index 113b79739..c759d9ed0 100644 --- a/sources/Composer/iTopComposer.php +++ b/sources/Composer/iTopComposer.php @@ -27,7 +27,10 @@ use RecursiveIteratorIterator; class iTopComposer { - + /** + * @return array List of all subdirs of /lib that are {@see IsTestDir}. + * Warning : each path contains slashes (meaning on Windows you'll get eg `C:/Dev/wamp64/www/itop-27/lib/goaop/framework/tests`) + */ public function ListAllTestDir() { $aAllTestDirs = array(); @@ -49,7 +52,9 @@ class iTopComposer continue; } - $aAllTestDirs[] = $file->getRealpath(); + $sTestPathDir = $file->getRealpath(); + $sTestPathDir = str_replace('\\', '/', $sTestPathDir); + $aAllTestDirs[] = $sTestPathDir; } return $aAllTestDirs; @@ -86,6 +91,7 @@ class iTopComposer $APPROOT_WITH_SLASHES.'lib/nikic/php-parser/test', + $APPROOT_WITH_SLASHES.'lib/pear/archive_tar/tests', $APPROOT_WITH_SLASHES.'lib/pear/console_getopt/tests', $APPROOT_WITH_SLASHES.'lib/pear/pear_exception/tests',