/**
  * {@inheritdoc}
  */
 protected function isExpressionSafe($expr)
 {
     return XPathHelper::isExpressionNumeric($expr);
 }
Esempio n. 2
0
 /**
  * @testdox isExpressionNumeric() tests
  * @dataProvider getIsExpressionNumericTests
  */
 public function testIsExpressionNumeric($expected, $expr)
 {
     $this->assertSame($expected, XPathHelper::isExpressionNumeric($expr));
 }