run() 공개 메소드

Runs the command.
public run ( ) : mixed
리턴 mixed
예제 #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);
 }