Ver código fonte

[TESTS] Zend_Tool

Fixed improvements in filter of directories to remotion.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23336 44c647ce-9c0f-0410-b52a-842ac1e357ba
ramon 15 anos atrás
pai
commit
42dab02ea7
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      tests/Zend/Tool/Project/ProfileTest.php

+ 5 - 1
tests/Zend/Tool/Project/ProfileTest.php

@@ -284,7 +284,11 @@ class Zend_Tool_Project_ProfileTest extends PHPUnit_Framework_TestCase
 
         foreach (new RecursiveIteratorIterator($rdi, RecursiveIteratorIterator::CHILD_FIRST) as $dirIteratorItem) {
 
-            if (stristr($dirIteratorItem->getPathname(), '.svn')) {
+            $basename = $dirIteratorItem->getBasename();
+            if (stristr($dirIteratorItem->getPathname(), '.svn')
+                || '.' === $basename
+                || '..' === $basename)
+            {
                 continue;
             }