addStaticTableHelper() public static method

addStaticTableHelper add Table Helper to all Table
public static addStaticTableHelper ( string $helper, array $methods = null, array $options = [] ) : void
$helper string
$methods array
$options array
return void
Esempio n. 1
0
 /**
  * testStaticTableHelper test add Table Helper to all Pix_Table
  */
 public function testStaticTableHelper()
 {
     Pix_Table::addStaticTableHelper('Pix_Table_TableHelperTest_Helper', array('static_table_test'));
     Pix_Table_TableHelperTest_Table::setData(uniqid());
     $uniqid = uniqid();
     $this->assertEquals(Pix_Table_TableHelperTest_Table::static_table_test($uniqid), 'StaticTableHelper-' . Pix_Table_TableHelperTest_Table::getData() . '-' . $uniqid);
 }