mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
N°4771 Fix .make/composer/rmDeniedTestDir.php doing nothing on Windows
Note that a .gitignore entry was added in dbc3da7b but it isn't necessary if rmDeniedTestDir work as expected !
This commit is contained in:
3
lib/.gitignore
vendored
3
lib/.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user