示例#1
0
 /**
  * Parse value with parser
  *
  * @param string $value
  *
  * @return array
  */
 protected function parseValue($value)
 {
     return Parser::parseValue($value);
 }
 /**
  * Check all value parsing case
  *
  * @param string $value
  * @param array $result
  * @param string $throwException
  * @param integer $throwExceptionCode
  *
  * @test
  * @dataProvider getValuesResults
  */
 public function checkValueParsing($value, $result, $throwException = NULL, $throwExceptionCode = NULL)
 {
     $this->setExpectedException($throwException, '', $throwExceptionCode);
     $this->assertEquals($result, Parser::parseValue($value));
 }