M6Web\Bundle\PhpProcessManagerBundle\Tests\Units\Command\HttpProcessCommand::testExecute PHP Method

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $this->given($loopMock = $this->getLoopMock(), $socketMock = $this->getSocketMock(), $httpServerMock = $this->getHttpServerMock(), $containerMock = $this->getContainer($loopMock, $socketMock, $httpServerMock), $inputMock = $this->getInputMock($port = 8000, $memoryMax = 0, $checkInterval = 60), $outputMock = $this->getOutputMock(), $testedCommand = new TestedCommand(), $testedCommand->setContainer($containerMock))->when($testedCommand->run($inputMock, $outputMock))->then->mock($socketMock)->call('listen')->withArguments($port)->once()->mock($loopMock)->call('addPeriodicTimer')->withAtLeastArguments([$inputMock->getOption('check-interval')])->once()->call('run')->once();
    }