diff options
Diffstat (limited to 'tests/FileLoaderTest.php')
-rw-r--r-- | tests/FileLoaderTest.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/FileLoaderTest.php b/tests/FileLoaderTest.php new file mode 100644 index 0000000..16c7a43 --- /dev/null +++ b/tests/FileLoaderTest.php @@ -0,0 +1,23 @@ +<?php +declare(strict_types=1); + +/** + * @author: Alexander Kiryukhin <alexander@kiryukhin.su> + * @license: MIT + */ +use PHPUnit\Framework\TestCase; + +/** + * Class FileLoaderTest + */ +class FileLoaderTest extends TestCase +{ + public function testLoadfile() + { + $loader = new NeonXP\Dotenv\Loader\FileLoader(); + + $result = $loader->load(__DIR__ . '/misc/.env.test'); + + $this->assertEquals(['KEY1=VALUE1', 'KEY2=VALUE2'], $result); + } +}
\ No newline at end of file |