/** * 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); }