mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-07 16:22: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>
|
<directory suffix=".php">src</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
<php>
|
||||||
|
<const name="MAGALLANES_VERSION" value="2" />
|
||||||
|
</php>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ class VersionCommandTest extends PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testRun()
|
public function testRun()
|
||||||
{
|
{
|
||||||
define('MAGALLANES_VERSION', '1');
|
|
||||||
$this->workAroundStatic();
|
$this->workAroundStatic();
|
||||||
$command = new VersionCommand();
|
$command = new VersionCommand();
|
||||||
$command->run();
|
$command->run();
|
||||||
|
|
Loading…
Reference in a new issue