3 namespace Doctrine\Tests\ORM\Tools\Console\Command;
5 use Doctrine\ORM\Tools\Console\Command\ConvertDoctrine1SchemaCommand;
7 class ConvertDoctrine1SchemaCommandTest extends \Doctrine\Tests\OrmTestCase
9 public function testExecution()
11 $entityGenerator = $this->getMock('Doctrine\ORM\Tools\EntityGenerator');
12 $metadataExporter = $this->getMock('Doctrine\ORM\Tools\Export\ClassMetadataExporter');
13 $command = new ConvertDoctrine1SchemaCommand();
14 $command->setEntityGenerator($entityGenerator);
16 $output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
17 $output->expects($this->once())
19 ->with($this->equalTo('No Metadata Classes to process.' . PHP_EOL));
21 $command->convertDoctrine1Schema($this->_getTestEntityManager(), array(), sys_get_temp_dir(), 'annotation', 4, null, $output);