Ejemplo n.º 1
0
 /**
  * Test to get classname from class namespace
  * */
 public function testGetClassName()
 {
     $this->assertInternalType("string", TableMapper::getClassName('Sirolad\\Potato\\User'));
 }
Ejemplo n.º 2
0
 /**
  * @param string connection to class name
  * @return string table name of Called class
  */
 public function tableName()
 {
     return TableMapper::getClassName(get_called_class());
 }