diff --git a/tests/Doctrine/Tests/ORM/Export/AllTests.php b/tests/Doctrine/Tests/ORM/Export/AllTests.php new file mode 100644 index 000000000..479ffcf33 --- /dev/null +++ b/tests/Doctrine/Tests/ORM/Export/AllTests.php @@ -0,0 +1,40 @@ +addTestSuite('Doctrine\Tests\ORM\Export\ClassExporterTest'); + + return $suite; + } +} + +if (PHPUnit_MAIN_METHOD == 'Orm_Export_AllTests::main') { + AllTests::main(); +} diff --git a/tests/Doctrine/Tests/ORM/Export/ClassExporterTest.php b/tests/Doctrine/Tests/ORM/Export/ClassExporterTest.php new file mode 100644 index 000000000..5186275e6 --- /dev/null +++ b/tests/Doctrine/Tests/ORM/Export/ClassExporterTest.php @@ -0,0 +1,54 @@ +. + */ + +namespace Doctrine\Tests\ORM\Export; + +use Doctrine\ORM\Export\ClassExporter; + +require_once __DIR__ . '/../../TestInit.php'; + +/** + * Test case for testing the ddl class exporter + * + * @package Doctrine + * @subpackage Query + * @author Jonathan H. Wage + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link http://www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + */ +class ClassExporterTest extends \Doctrine\Tests\OrmTestCase +{ + public function testTest() + { + /* + $em = $this->_getTestEntityManager(); + + $classes = array($em->getClassMetadata('Doctrine\Tests\Models\CMS\CmsUser'), $em->getClassMetadata('Doctrine\Tests\Models\CMS\CmsPhonenumber')); + + $exporter = new ClassExporter($em); + $sql = $exporter->getExportClassesSql($classes); + print_r($sql); + exit('test'); + */ + } +} \ No newline at end of file