Пример #1
0
 /**
  * @param string $string String to get value of
  * @param string $expectedValue
  * @dataProvider sampleGetValueStringProvider
  */
 public function testGetValue($string, $expectedValue)
 {
     $this->_filter->setString($string);
     $this->assertEquals($expectedValue, $this->_filter->getValue());
 }
Пример #2
0
 /**
  * Return associative array of parameters.
  *
  * @param string $value raw parameters
  * @return array
  */
 private function getParameters($value)
 {
     $tokenizer = new ParameterTokenizer();
     $tokenizer->setString($value);
     $params = $tokenizer->tokenize();
     return $params;
 }