コード例 #1
0
 /**
  * Returns the converted array.
  *
  * @param string $multiLineValues   The string of values.
  *
  * @return array   The array of values.
  */
 public function convert($multiLineValues)
 {
     $values = array();
     $lines = explode("\n", $multiLineValues);
     foreach ($lines as $line) {
         $values = array_merge($values, $this->stringToArray->convert($line));
     }
     return array($lines, $values);
 }
コード例 #2
0
 /**
  * @dataProvider testParseStringDataProvider
  */
 public function testParseString($inputString, $exceptedValue)
 {
     $this->assertEquals($exceptedValue, $this->object->parseString($inputString));
 }