* @license PHP License * @package WB * @subpackage unittest */ include '.prepend.php'; define('UNITTEST_SAMPLE_FILE_DIR', '/var/www/sample.schaufelberger.de/media'); class UnitTest_VFS_Sample { static public function getMajors() { $majors = array(); $di = new DirectoryIterator(UNITTEST_SAMPLE_FILE_DIR); foreach ($di as $i) { if ($i->isDot() || $i->isFile()) { continue; } $majors[] = $i->getFilename(); } return $majors; } static public function getDirIterator($major) { $iter = new DirectoryIterator(UNITTEST_SAMPLE_FILE_DIR . '/' . $major); return $iter; } } /* $test->addTestFile('folder'); $test->addTestFile('mimetype'); $test->addTestFile('file'); $test->addTestFile('mime/image'); */ $test->addTestFile('gallery'); include '.append.php'; ?>