abstractCommand = $this->getMockForAbstractClass('Mage\Command\AbstractCommand'); } /** * @covers ::setConfig */ public function testSetConfig() { $configMock = $this->getMock('Mage\Config'); $this->abstractCommand->setConfig($configMock); $actual = $this->getPropertyValue($this->abstractCommand, 'config'); $this->assertEquals($configMock, $actual); } /** * @covers ::getConfig */ public function testGetConfig() { $configMock = $this->getMock('Mage\Config'); $this->setPropertyValue($this->abstractCommand, 'config', $configMock); $actual = $this->abstractCommand->getConfig(); $this->assertEquals($configMock, $actual); } }