aboutsummaryrefslogblamecommitdiff
path: root/tests/mocks/MockParser.php
blob: d327f9fe62c7eaa3b9bc358e82a1d13349b6ba4b (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                        








                                           
                    
       
                                                  


                                                 
                                                  

     
<?php
declare(strict_types=1);

/**
 * @author: Alexander Kiryukhin <alexander@kiryukhin.su>
 * @license: MIT
 */

use NeonXP\Dotenv\Parser\ParserInterface;

/**
 * Class MockParser
 */
class MockParser implements ParserInterface
{

    /**
     * @param string $line
     * @return array
     */
    public function parseLine(string $line): array
    {
        list($key, $value) = explode("=", $line);

        return ['key' => $key, 'value' => $value];
    }
}