run() public method

Runs the command.
public run ( ) : mixed
return mixed
Beispiel #1
0
 public function testCallTemplateString()
 {
     $templateString = 'Hello Mr {{ surname }}';
     $args = array(1 => '-s', '2' => $templateString);
     $fakeConsole = new FakeConsole($args);
     $result = (string) $fakeConsole->run();
     $this->assertInternalType('string', $result);
     $this->assertNotContains('{{ surname }}', $result);
 }