Example #1
0
 /**
  * @dataProvider configurationExtensionsAndString
  */
 public function testMacroPostParsers($extension, $parser, $string)
 {
     $this->conf->setExtension($extension);
     $this->conf->setParser($parser);
     $this->conf->registerMacroPostParser(function (&$obj) {
         $obj['test'] = 'pass';
         return $obj;
     });
     $decoded = $this->conf->callDecode($string);
     $this->assertEquals('pass', $decoded['test']);
 }