Ejemplo n.º 1
0
 public function testTableImplicitName()
 {
     Zend_Loader::loadClass('Zend_Db_Table_TableSpecial');
     // TableSpecial.php contains class bugs_products too.
     $table = new zfbugs_products(array('db' => $this->_db));
     $info = $table->info();
     $this->assertContains('name', array_keys($info));
     $this->assertEquals('zfbugs_products', $info['name']);
 }
Ejemplo n.º 2
0
 public function testTableImplicitName()
 {
     include_once '_files/My/ZendDbTable/TableSpecial.php';
     // TableSpecial.php contains class bugs_products too.
     $table = new zfbugs_products(array('db' => $this->_db));
     $info = $table->info();
     $this->assertContains('name', array_keys($info));
     $this->assertEquals('zfbugs_products', $info['name']);
 }