From 8ea647570b87adda400e5a3ce6c91f4b51327a0d Mon Sep 17 00:00:00 2001 From: Александр Кирюхин Date: Fri, 19 Jan 2018 19:03:26 +0300 Subject: Remove KeyValue object --- tests/mocks/MockParser.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/mocks/MockParser.php') diff --git a/tests/mocks/MockParser.php b/tests/mocks/MockParser.php index 39c369c..d327f9f 100644 --- a/tests/mocks/MockParser.php +++ b/tests/mocks/MockParser.php @@ -7,7 +7,6 @@ declare(strict_types=1); */ use NeonXP\Dotenv\Parser\ParserInterface; -use NeonXP\Dotenv\Types\KeyValue; /** * Class MockParser @@ -17,12 +16,12 @@ class MockParser implements ParserInterface /** * @param string $line - * @return KeyValue + * @return array */ - public function parseLine(string $line): KeyValue + public function parseLine(string $line): array { list($key, $value) = explode("=", $line); - return new KeyValue($key, $value); + return ['key' => $key, 'value' => $value]; } } \ No newline at end of file -- cgit v1.2.3