From 8bd7f6c56c2ce7035fbbd9cf2f6ba92eb420f590 Mon Sep 17 00:00:00 2001 From: Claudio Zizza Date: Wed, 11 Feb 2015 21:21:19 +0100 Subject: [PATCH] phpunit annotations added --- tests/MageTest/Command/FactoryTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/MageTest/Command/FactoryTest.php b/tests/MageTest/Command/FactoryTest.php index 982ee56..1920e21 100644 --- a/tests/MageTest/Command/FactoryTest.php +++ b/tests/MageTest/Command/FactoryTest.php @@ -20,6 +20,9 @@ class FactoryTest extends PHPUnit_Framework_TestCase $this->config = $this->getMock('Mage\Config'); } + /** + * @covers Factory::get + */ public function testGet() { $command = Factory::get('add', $this->config); @@ -28,12 +31,16 @@ class FactoryTest extends PHPUnit_Framework_TestCase /** * @expectedException \Exception + * @covers Factory::get */ public function testGetClassNotFoundException() { $command = Factory::get('commanddoesntexist', $this->config); } + /** + * @covers Factory::get + */ public function testGetCustomCommand() { $this->getMockBuilder('Mage\\Command\\AbstractCommand') @@ -42,7 +49,7 @@ class FactoryTest extends PHPUnit_Framework_TestCase /** * current workaround - * @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/134 + * @link https://github.com/sebastianbergmann/phpunit-mock-objects/issues/134 */ class_alias('MyCommand', 'Command\\MyCommand'); @@ -53,6 +60,7 @@ class FactoryTest extends PHPUnit_Framework_TestCase /** * @expectedException \Exception * @expectedExceptionMessage The command MyInconsistentCommand must be an instance of Mage\Command\AbstractCommand. + * @covers Factory::get */ public function testGetInconsistencyException() {