Example #1
0
 /**
  * Testing using a php parsing function
  *
  */
 public function testAlternateParser()
 {
     Form::setParser('my_custom_parser');
     $tpl = 'test.php';
     $args = array('person' => 'Milo');
     $actual = Form::parse($tpl, $args);
     $expected = 'Hello Milo';
     $this->assertEquals($actual, $expected);
 }