/**
  * Test to get classname from class namespace
  * */
 public function testGetClassName()
 {
     $this->assertInternalType("string", TableMapper::getClassName('Sirolad\\Potato\\User'));
 }
Esempio 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());
 }