. */ /** * Doctrine_Import_Schema_TestCase * * @package Doctrine * @author Konsta Vesterinen * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ */ class Doctrine_Import_Schema_TestCase extends Doctrine_UnitTestCase { public function testYmlImport() { $import = new Doctrine_Import_Schema(); $import->importSchema('schema.yml', 'yml', 'classes'); if ( ! file_exists('classes/User.php')) { $this->fail(); } else { unlink('classes/User.php'); } if ( ! file_exists('classes/Group.php')) { $this->fail(); } else { unlink('classes/Group.php'); } } }