From 63c50efaa4b1e617bc9b59f89ab1848bf50dad9c Mon Sep 17 00:00:00 2001 From: Nicholas English <30304307+Nenglish7@users.noreply.github.com> Date: Tue, 2 Jan 2018 23:20:31 -0500 Subject: [PATCH] Delete FormatterTest.php --- tests/FormatterTest.php | 109 ---------------------------------------- 1 file changed, 109 deletions(-) delete mode 100644 tests/FormatterTest.php diff --git a/tests/FormatterTest.php b/tests/FormatterTest.php deleted file mode 100644 index 4e2f618..0000000 --- a/tests/FormatterTest.php +++ /dev/null @@ -1,109 +0,0 @@ - - * @author Genial Contributors - * - * @link for the canonical source repository. - * @copyright Copyright (c) 2017-2018 Genial Framework. - * @license New BSD License. - */ - -namespace Genial\Env; - -use PHPUnit\Framework\TestCase; - -/** - * FormatterTest. - */ -final class FormatterTest extends TestCase -{ - - /** - * testInitialize(). - * - * Test the random int function. - * - * @return void. - */ - public function testInitialize() - { - $formatter = new Formatter(); - $this->assertTrue(is_array($formatter->initialize([ - 'application' => [ - ], - ]))); - } - - /** - * testInitialize2(). - * - * Test the random int function. - * - * @return void. - */ - public function testInitialize2() - { - $formatter = new Formatter(); - $this->assertTrue(is_array($formatter->initialize([ - 'application' => [ - 'APP_SECRET_KEY' => '[GENIAL]@%$-<:Ns3Z-3^rUc>YdF$', - 'APP_NAME' => 'Genial', - 'DEBUG' => false, - 'LOG' => true, - ], - ]))); - } - - /** - * testInitialize3(). - * - * Test the random int function. - * - * @return void. - */ - public function testInitialize3() - { - $formatter = new Formatter(); - $this->assertTrue(is_array($formatter->initialize([ - 'application' => [ - 'APP_SECRET_KEY' => '[GENIAL]@%$-<:Ns3Z-3^rUc>YdF$', - 'APP_NAME' => 'Genial', - 'DEBUG' => false, - 'LOG' => true, - ], - 'test' => [ - 'FOO' => 'null', - 'BAR' => 'true', - 'MEO' => 'false', - 'BAT' => '1', - 'FUN' => '0', - ], - ]))); - } - - /** - * testInitialize4(). - * - * Test the random int function. - * - * @return void. - */ - public function testInitialize4() - { - $this->expectException(Exception\UnderflowException::class); - $formatter = new Formatter(); - $array = $formatter->initialize([ - 'application' => [ - 'APP_SECRET_KEY' => '[GENIAL]@%$-<:Ns3Z-3^rUc>YdF$', - 'APP_NAME' => 'Genial', - 'DEBUG' => false, - 'LOG' => true, - ], - 'test' => [ - ], - ]); - } - -}