Beispiel #1
0
 /**
  * @test
  * @covers SlimApp\Db\DbTable::getTableName
  */
 public function getTableName_returns_tableName_if_set()
 {
     $table = $this->getMockForAbstractClass('SlimApp\\Db\\DbTable');
     $dbTable = new \SebastianBergmann\PeekAndPoke\Proxy($table);
     $tableName = 'TableName';
     $dbTable->tableName = $tableName;
     $resultTableNameSet = $dbTable->getTableName();
     $this->assertEquals($tableName, $resultTableNameSet);
 }