getColumnsMeta() public method

Get meta info for fields in table
public getColumnsMeta ( ) : mixed
return mixed
Exemplo n.º 1
0
 /**
  * Test for getColumnsMeta
  *
  * @return void
  */
 public function testGetColumnsMeta()
 {
     $dbi = $this->getMockBuilder('PMA\\libraries\\DatabaseInterface')->disableOriginalConstructor()->getMock();
     $dbi->expects($this->once())->method('tryQuery')->with("SELECT * FROM `db`.`table` LIMIT 1")->will($this->returnValue('v1'));
     $dbi->expects($this->once())->method('getFieldsMeta')->with("v1")->will($this->returnValue('movecols'));
     $GLOBALS['dbi'] = $dbi;
     $tableObj = new Table('table', 'db');
     $this->assertEquals($tableObj->getColumnsMeta(), 'movecols');
 }