Commit c3c4a284 authored by Jonathan.Wage's avatar Jonathan.Wage

Fix unit tests.

parent 5bec1b22
......@@ -56,12 +56,6 @@ class Doctrine_Export_Schema_TestCase extends Doctrine_UnitTestCase
public function testYmlExport()
{
$export = new Doctrine_Export_Schema();
$export->exportSchema('schema.yml', 'yml', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'models', $this->tables);
}
public function testXmlExport()
{
$export = new Doctrine_Export_Schema();
$export->exportSchema('schema.xml', 'xml', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'models', $this->tables);
$export->exportSchema('schema-export.yml', 'yml', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'models', $this->tables);
}
}
\ No newline at end of file
......@@ -49,22 +49,4 @@ class Doctrine_Import_Schema_TestCase extends Doctrine_UnitTestCase
unlink('classes/Group.class.php');
}
}
public function testXmlImport()
{
$import = new Doctrine_Import_Schema();
$import->importSchema('schema.xml', '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');
}
}
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment