Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30 from ch3nkula/v1.0.0-dev
Browse files Browse the repository at this point in the history
rename folder & changes to classmap autoload-dev
  • Loading branch information
xSavitar authored Oct 16, 2017
2 parents 103ab08 + 20ade8a commit 0729b55
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
]
},
"autoload-dev": {
"classmap": [ "php-tests/" ]
"classmap": [ "tests/" ]
},
"license": "MIT",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions php/Environments.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* Class Environment
* Class Environments
* Handles the environment differences between production and development
*/
class Environment
class Environments
{

/**
Expand Down
2 changes: 1 addition & 1 deletion php/shorten.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$env = "production";
}

$environment = new Environment( $env );
$environment = new Environments( $env );

$host = $environment->getHost();
$script = $environment->getScript();
Expand Down
12 changes: 6 additions & 6 deletions php-tests/EnvironmentsTest.php → tests/EnvironmentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down

0 comments on commit 0729b55

Please sign in to comment.