/** * @test */ public function checkIfBuildCommandRendersValidCommandString() { $expected = array('--do this', '--count toThree', '--stop'); $this->proxy->_set('command', 'you'); $this->proxy->_set('argumentMap', array('do' => '--do %s', 'count' => '--count %s', 'stop' => '--stop')); $this->proxy->_set('arguments', array('do' => 'this', 'count' => 'toThree', 'stop' => true)); $actual = $this->proxy->_call('buildArguments'); $this->assertEquals($expected, $actual); }
/** * @return string */ protected function renderCommand() { $this->commandLine = sprintf('%s', $this->command->render()); }