setting constant in phpunit config

This commit is contained in:
Claudio Zizza 2015-01-02 16:24:25 +01:00 committed by Claudio Zizza
parent 67960ba3f4
commit aff9d2f32b
2 changed files with 4 additions and 1 deletions

View file

@ -15,5 +15,9 @@
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<php>
<const name="MAGALLANES_VERSION" value="2" />
</php>
</phpunit>

View file

@ -13,7 +13,6 @@ class VersionCommandTest extends PHPUnit_Framework_TestCase
{
public function testRun()
{
define('MAGALLANES_VERSION', '1');
$this->workAroundStatic();
$command = new VersionCommand();
$command->run();