/** * 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); }
/** * @dataProvider testParseStringDataProvider */ public function testParseString($inputString, $exceptedValue) { $this->assertEquals($exceptedValue, $this->object->parseString($inputString)); }