public function testRunnerTryArgs() { $argv = ['placeholder', 'test:array-args', 'a', 'b', 'c']; $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream()); $expected = <<<EOT > The parameters passed are: array ( 0 => 'a', 1 => 'b', 2 => 'c', ) EOT; $this->guy->seeOutputEquals($expected); }
public function testAskReply() { $this->expectedAnswer = 'jon'; verify($this->ask('What is your name?'))->equals('jon'); $this->guy->seeOutputEquals('<question>? What is your name?</question> '); }