mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			712 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			712 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace MageTest\Command\BuiltIn;
 | 
						|
 | 
						|
use Mage\Command\BuiltIn\VersionCommand;
 | 
						|
use Mage\Console;
 | 
						|
use MageTest\TestHelper\BaseTest;
 | 
						|
use PHPUnit_Framework_TestCase;
 | 
						|
 | 
						|
/**
 | 
						|
 * @coversDefaultClass Mage\Command\BuiltIn\VersionCommands
 | 
						|
 * @group Mage_Command_BuildIn_VersionCommand
 | 
						|
 * @uses Mage\Console
 | 
						|
 * @uses Mage\Console\Colors
 | 
						|
 */
 | 
						|
class VersionCommandTest extends BaseTest
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @group 175
 | 
						|
     * @covers Mage\Command\BuiltIn\VersionCommand::run()
 | 
						|
     */
 | 
						|
    public function testRun()
 | 
						|
    {
 | 
						|
        $this->setUpConsoleStatics();
 | 
						|
        $command = new VersionCommand();
 | 
						|
        $command->run();
 | 
						|
 | 
						|
        $this->expectOutputString('Running Magallanes version 2' . str_repeat(PHP_EOL, 2));
 | 
						|
    }
 | 
						|
}
 |