diff --git a/.gitignore b/.gitignore index 66f4d84..88c7e14 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ vendor mage.phar +bin +!bin/mage # OS generated files # // GitHub Recommendation ###################### diff --git a/composer.json b/composer.json index 2183c74..a3a6868 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,9 @@ "Command\\": ".mage/commands" } }, + "config": { + "bin-dir": "bin" + }, "bin": [ "bin/mage" ] diff --git a/composer.lock b/composer.lock index bc2e079..e882f21 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "a19528b890d301384e45c1ed7d221e26", + "hash": "c66ae8cd7e44d614445b273f310d9c34", "packages": [], "packages-dev": [ { @@ -755,6 +755,7 @@ "minimum-stability": "stable", "stability-flags": [], "prefer-stable": false, + "prefer-lowest": false, "platform": { "php": ">=5.3" }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a5e1c3b..6fbbd61 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,8 +5,8 @@ backupGlobals="false" verbose="true" strict="true" - colors="false"> - + colors="true"> + tests diff --git a/tests/MageTest/Console/ColorsTest.php b/tests/MageTest/Console/ColorsTest.php index 2655409..5038303 100644 --- a/tests/MageTest/Console/ColorsTest.php +++ b/tests/MageTest/Console/ColorsTest.php @@ -7,17 +7,21 @@ use PHPUnit_Framework_TestCase; /** * @group Mage_Console_Colors + * @coversDefaultClass Mage\Console\Colors */ class ColorsTest extends PHPUnit_Framework_TestCase { + private $noColorParameter = "no-color"; /** * @group 159 + * @covers ::color */ public function testColor() { $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') + ->with($this->noColorParameter) ->will($this->returnValue(false)); $string = 'FooBar'; @@ -31,12 +35,14 @@ class ColorsTest extends PHPUnit_Framework_TestCase /** * @group 159 + * @covers ::color */ public function testColorNoColor() { $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') + ->with($this->noColorParameter) ->will($this->returnValue(true)); $string = 'FooBar'; @@ -50,12 +56,14 @@ class ColorsTest extends PHPUnit_Framework_TestCase /** * @group 159 + * @covers ::color */ public function testColorUnknownColorName() { $config = $this->getMock('Mage\Config'); $config->expects($this->once()) ->method('getParameter') + ->with($this->noColorParameter) ->will($this->returnValue(false)); $string = 'FooBar';