_notIncludeDir = self::WEBALIZER_DIR_NAME . "/this_dir_should_not_include"; $this->_includeDir = self::WEBALIZER_DIR_NAME . "/1"; mkdir(self::WEBALIZER_DIR_NAME, 0755); mkdir($this->_notIncludeDir, 0755); mkdir($this->_includeDir, 0755); } public function tearDown() { rmdir($this->_notIncludeDir); rmdir($this->_includeDir); rmdir(self::WEBALIZER_DIR_NAME); } public function testIfDirIsNotIncluded() { $skipDirs = array($this->_notIncludeDir); $files = uwFindAllFiles( self::WEBALIZER_DIR_NAME, array(), true, $skipDirs); $this->assertNotContains($this->_notIncludeDir, $files, "Directory {$this->_notIncludeDir} shouldn't been included in this list"); $this->assertContains($this->_includeDir, $files, "Directory {$this->_includeDir} should been included in this list"); } }