public function setUp() { $this->mockReflectionService = $this->createMock(\TYPO3\Flow\Reflection\ReflectionService::class); $this->commandManager = $this->getMockBuilder(\TYPO3\Flow\Cli\CommandManager::class)->setMethods(array('getAvailableCommands'))->getMock(); $this->mockBootstrap = $this->getMockBuilder(\TYPO3\Flow\Core\Bootstrap::class)->disableOriginalConstructor()->getMock(); $this->commandManager->injectBootstrap($this->mockBootstrap); }
public function setUp() { $this->mockReflectionService = $this->getMock(\TYPO3\Flow\Reflection\ReflectionService::class); $this->commandManager = $this->getMock(\TYPO3\Flow\Cli\CommandManager::class, array('getAvailableCommands')); $this->mockBootstrap = $this->getMock(\TYPO3\Flow\Core\Bootstrap::class, array(), array(), '', false); $this->commandManager->injectBootstrap($this->mockBootstrap); }
public function setUp() { $this->mockReflectionService = $this->getMock('TYPO3\\Flow\\Reflection\\ReflectionService'); $this->commandManager = $this->getMock('TYPO3\\Flow\\Cli\\CommandManager', array('getAvailableCommands')); $this->mockBootstrap = $this->getMock('TYPO3\\Flow\\Core\\Bootstrap', array(), array(), '', FALSE); $this->commandManager->injectBootstrap($this->mockBootstrap); }