function test_getComponentsFiles() { $directory = MAX_PATH . '/lib/OX/Plugin/tests/data/testExtensions/testExtension1/testGroup2/'; $aMatches = array(); $aFiles = OX_Component::_getComponentFilesFromDirectory($directory, true, $aMatches); $this->assertEqual(count($aFiles), 3); }