mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-08 00:32:15 +02:00
setting constant in phpunit config
This commit is contained in:
parent
67960ba3f4
commit
aff9d2f32b
|
@ -15,5 +15,9 @@
|
|||
<directory suffix=".php">src</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
|
||||
<php>
|
||||
<const name="MAGALLANES_VERSION" value="2" />
|
||||
</php>
|
||||
</phpunit>
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ class VersionCommandTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
public function testRun()
|
||||
{
|
||||
define('MAGALLANES_VERSION', '1');
|
||||
$this->workAroundStatic();
|
||||
$command = new VersionCommand();
|
||||
$command->run();
|
||||
|
|
Loading…
Reference in a new issue