. */ /** * Doctrine_Import_Schema_Yml_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_Yml_TestCase extends Doctrine_UnitTestCase { public function testYmlImport() { $import = new Doctrine_Import_Schema_Yml(); $import->importSchema('schema.yml', 'classes'); if ( ! file_exists('classes/User.class.php')) { $this->fail(); } else { unlink('classes/User.class.php'); } if ( ! file_exists('classes/Group.class.php')) { $this->fail(); } else { unlink('classes/Group.class.php'); } } }