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