Ejemplo n.º 1
0
 /**
  * @testdox getParametersFromXSL() tests
  * @dataProvider getParametersTests
  */
 public function testGetParametersFromXSL($xsl, $expected)
 {
     if ($expected instanceof Exception) {
         $this->setExpectedException(get_class($expected), $expected->getMessage());
     }
     $this->assertSame($expected, TemplateHelper::getParametersFromXSL($xsl));
 }
Ejemplo n.º 2
0
 /**
  * Return a list of parameters in use in this template
  *
  * @return array Alphabetically sorted list of unique parameter names
  */
 public function getParameters()
 {
     return TemplateHelper::getParametersFromXSL($this->__toString());
 }