[CLEANUP] Adjust code to coding guidelines
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Mvc / Cli / CommandTest.php
index 5c55fe2..afc4de6 100644 (file)
@@ -26,7 +26,7 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli;
 class CommandTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
 
        /**
-        * @var \TYPO3\CMS\Extbase\Mvc\Cli\Command
+        * @var \TYPO3\CMS\Extbase\Mvc\Cli\Command|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface
         */
        protected $command;
 
@@ -91,7 +91,7 @@ class CommandTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
        /**
         * @test
         * @dataProvider invalidCommandClassNames
-        * @expectedException InvalidArgumentException
+        * @expectedException \InvalidArgumentException
         * @param string $controllerClassName
         */
        public function constructThrowsExceptionIfCommandClassNameIsInvalid($controllerClassName) {
@@ -132,7 +132,7 @@ class CommandTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         */
        public function getArgumentDefinitionsReturnsArrayOfArgumentDefinitionIfCommandExpectsArguments() {
                $mockParameterReflection = $this->getMock('TYPO3\\CMS\\Extbase\\Reflection\\ParameterReflection', array(), array(), '', FALSE);
-               $mockReflectionService = $this->getMock('TYPO3\\CMS\\Extbase\\Reflection\\Service');
+               $mockReflectionService = $this->getMock('TYPO3\\CMS\\Extbase\\Reflection\\ReflectionService');
                $mockMethodParameters = array('argument1' => array('optional' => FALSE), 'argument2' => array('optional' => TRUE));
                $mockReflectionService->expects($this->atLeastOnce())->method('getMethodParameters')->will($this->returnValue($mockMethodParameters));
                $this->command->injectReflectionService($mockReflectionService);
@@ -146,8 +146,6 @@ class CommandTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
                $actualResult = $this->command->getArgumentDefinitions();
                $this->assertSame($expectedResult, $actualResult);
        }
-
 }
 
-
 ?>
\ No newline at end of file