. */ /** * Doctrine_Search_File_TestCase * * @package Doctrine * @author Konsta Vesterinen * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @category Object Relational Mapping * @link www.phpdoctrine.org * @since 1.0 * @version $Revision$ */ class Doctrine_Search_File_TestCase extends Doctrine_UnitTestCase { public function prepareData() { } public function prepareTables() { } public function testSearchFileAutoCreatesFileTable() { $this->_search = new Doctrine_Search_File(); $this->conn->export->exportClasses(array('FileIndex')); } public function testIndexDirectoryIndexesAllFiles() { $this->_search->indexDirectory(dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files'); $resultSet = $this->_search->search('dbms'); $this->assertEqual(count($resultSet), 1); } }