addStaticRowHelper() public static method

addStaticRowHelper add Row Helper to all Table
public static addStaticRowHelper ( string $helper, array $methods = null, array $options = [] ) : void
$helper string
$methods array
$options array
return void
Esempio n. 1
0
 /**
  * testStaticRowHelper test add Row Helper to all Pix_Table
  */
 public function testStaticRowHelper()
 {
     Pix_Table::addStaticRowHelper('Pix_Table_TableHelperTest_Helper', array('static_row_test'));
     $row = Pix_Table_TableHelperTest_Table::createRow();
     $row->id = uniqid();
     $uniqid = uniqid();
     $this->assertEquals($row->static_row_test($uniqid), 'StaticRowHelper-' . $row->id . '-' . $uniqid);
 }