From ace413af653f4a21d20f321677c4c6af409d2823 Mon Sep 17 00:00:00 2001 From: Alangi Derick Date: Mon, 16 Oct 2017 16:18:36 +0100 Subject: [PATCH 1/2] Class name should match file name Signed-off-by: Alangi Derick --- php/Environments.php | 4 ++-- php/shorten.php | 2 +- {php-tests => tests}/EnvironmentsTest.php | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) rename {php-tests => tests}/EnvironmentsTest.php (66%) diff --git a/php/Environments.php b/php/Environments.php index 91faef2..bc9875c 100644 --- a/php/Environments.php +++ b/php/Environments.php @@ -1,10 +1,10 @@ getHost(); $script = $environment->getScript(); diff --git a/php-tests/EnvironmentsTest.php b/tests/EnvironmentsTest.php similarity index 66% rename from php-tests/EnvironmentsTest.php rename to tests/EnvironmentsTest.php index 64ad2e9..ae81123 100644 --- a/php-tests/EnvironmentsTest.php +++ b/tests/EnvironmentsTest.php @@ -13,26 +13,26 @@ class EnvironmentsTest extends TestCase { public function testDev() { - $target = new Environment("dev"); + $target = new Environments("dev"); $this->assertEquals( - Environment::developmentHost, + Environments::developmentHost, $target->getHost() ); $this->assertEquals( - Environment::developmentScript, + Environments::developmentScript, $target->getScript() ); } public function testElse() { - $target = new Environment("anything else"); + $target = new Environments("anything else"); $this->assertEquals( - Environment::productionHost, + Environments::productionHost, $target->getHost() ); $this->assertEquals( - Environment::productionScript, + Environments::productionScript, $target->getScript() ); } From 20ade8abd0dc867a099b8591230d8cbe32c03f8c Mon Sep 17 00:00:00 2001 From: Alangi Derick Date: Mon, 16 Oct 2017 16:22:10 +0100 Subject: [PATCH 2/2] rename folder & changes to classmap autoload-dev Signed-off-by: Alangi Derick --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a070429..939ac58 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ ] }, "autoload-dev": { - "classmap": [ "php-tests/" ] + "classmap": [ "tests/" ] }, "license": "MIT", "authors": [