/** * Test the input setter. * * @return void * * @since 1.0 * * @covers Joomla\Console\Command\AbstractCommand::setInput */ public function testSetInput() { // Using mock to make sure we get same object. $mockInput = $this->getMock('Joomla\\Input\\Cli', array('test'), array(), '', false); $mockInput->expects($this->any())->method('test')->will($this->returnValue('ok')); $this->instance->setInput($mockInput); $input = TestHelper::getValue($this->instance, 'input'); $this->assertEquals('ok', $input->test()); }