예제 #1
0
 /**
  *
  */
 public function testGetInstace()
 {
     $instance = \Classes\AdapterMakerFile\ZendFrameworkOne\DbTable::getInstance();
     $this->assertTrue($instance instanceof \Classes\AdapterMakerFile\ZendFrameworkOne\DbTable);
     $this->assertTrue($instance->getPastName() == "DbTable");
     $this->assertTrue($instance->getFileTpl() == "dbtable.php");
     $this->assertTrue($instance->getFilesFixeds('parentClass')->getFileName() == "TableAbstract");
     $this->assertTrue($instance->getFilesFixeds('parentClass')->getTpl() == "dbtable_abstract.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());
 }