예제 #1
0
 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");
 }
예제 #2
0
 /**
  * Cria Instancias dos arquivos que devem ser gerados
  *
  * @return \Classes\AdapterMakerFile\AbstractAdapter[]
  */
 public function getMakeFileInstances()
 {
     return array(DbTable::getInstance(), Entity::getInstance(), Model::getInstance());
 }