public function testGetInstace() { $instance = \Classes\AdapterMakerFile\ZendFrameworkOne\Entity::getInstance(); $this->assertTrue($instance instanceof \Classes\AdapterMakerFile\ZendFrameworkOne\Entity); $this->assertTrue($instance->getPastName() == 'Entity'); $this->assertTrue($instance->getFilesFixeds('parentClass')->getFileName() == "EntityAbstract"); $this->assertTrue($instance->getFilesFixeds('parentClass')->getTpl() == "entity_abstract.php"); $this->assertTrue($instance->getFileTpl() == "entity.php"); }
/** * Cria Instancias dos arquivos que devem ser gerados * * @return \Classes\AdapterMakerFile\AbstractAdapter[] */ public function getMakeFileInstances() { return array(DbTable::getInstance(), Entity::getInstance(), Model::getInstance()); }