mirror of https://github.com/hauke68/Magallanes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
<?php |
|
|
|
namespace MageTest\Command\BuiltIn; |
|
|
|
use Mage\Command\BuiltIn\CompileCommand; |
|
use MageTest\TestHelper\BaseTest; |
|
|
|
/** |
|
* Class CompileCommandTest |
|
* @package MageTest\Command\BuiltIn |
|
* @coversDefaultClass Mage\Command\BuiltIn\CompileCommand |
|
* @uses Mage\Compiler |
|
*/ |
|
class CompileCommandTest extends BaseTest |
|
{ |
|
/** |
|
* @var CompileCommand |
|
*/ |
|
private $compileCommand; |
|
|
|
/** |
|
* @before |
|
*/ |
|
public function before() |
|
{ |
|
$this->compileCommand = new CompileCommand(); |
|
} |
|
|
|
/** |
|
* @covers ::__construct |
|
*/ |
|
public function testConstruct() |
|
{ |
|
$compileCommand = new CompileCommand(); |
|
|
|
$compilerProperty = $this->getPropertyValue($compileCommand, 'compiler'); |
|
$this->assertInstanceOf('Mage\Compiler', $compilerProperty); |
|
} |
|
|
|
/** |
|
* @covers ::setCompiler |
|
*/ |
|
public function testSetCompiler() |
|
{ |
|
$compilerMock = $this->getMock('Mage\Compiler'); |
|
$this->compileCommand->setCompiler($compilerMock); |
|
|
|
$compilerProperty = $this->getPropertyValue($this->compileCommand, 'compiler'); |
|
$this->assertEquals($compilerMock, $compilerProperty); |
|
} |
|
}
|
|
|