Magallanes/tests/MageTest/Command/BuiltIn/VersionCommandTest.php

31 lines
712 B
PHP
Raw Normal View History

2015-01-02 15:28:13 +01:00
<?php
2015-01-05 13:36:19 +01:00
namespace MageTest\Command\BuiltIn;
2015-01-02 15:28:13 +01:00
use Mage\Command\BuiltIn\VersionCommand;
use Mage\Console;
use MageTest\TestHelper\BaseTest;
2015-01-02 15:28:13 +01:00
use PHPUnit_Framework_TestCase;
/**
* @coversDefaultClass Mage\Command\BuiltIn\VersionCommands
2015-01-02 15:28:13 +01:00
* @group Mage_Command_BuildIn_VersionCommand
* @uses Mage\Console
* @uses Mage\Console\Colors
2015-01-02 15:28:13 +01:00
*/
class VersionCommandTest extends BaseTest
2015-01-02 15:28:13 +01:00
{
2015-01-05 13:36:19 +01:00
/**
* @group 175
* @covers Mage\Command\BuiltIn\VersionCommand::run()
2015-01-05 13:36:19 +01:00
*/
2015-01-02 15:28:13 +01:00
public function testRun()
{
$this->setUpConsoleStatics();
2015-01-02 15:28:13 +01:00
$command = new VersionCommand();
$command->run();
$this->expectOutputString('Running Magallanes version 2' . str_repeat(PHP_EOL, 2));
2015-01-02 15:28:13 +01:00
}
}