/** * @test */ public function outputReplacesArgumentsInGivenString() { $this->mockConsoleOutput->expects($this->once())->method('output')->with('%2$s %1$s', array('text', 'some')); $this->commandController->_call('output', '%2$s %1$s', array('text', 'some')); }
/** * @test */ public function outputLineAppendsGivenStringAndNewlineToTheResponseContent() { $this->mockConsoleOutput->expects($this->once())->method('write')->with('some text' . PHP_EOL); $this->commandController->_call('outputLine', 'some text'); }