. */ /** * Doctrine_Import_Schema_Xml_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_Xml_TestCase extends Doctrine_UnitTestCase { public function testXmlImport() { $import = new Doctrine_Import_Schema_Xml(); $import->importSchema('schema.xml', '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'); } } }