Пример #1
0
    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);
    }
Пример #2
0
 public function testAskReply()
 {
     $this->expectedAnswer = 'jon';
     verify($this->ask('What is your name?'))->equals('jon');
     $this->guy->seeOutputEquals('<question>?  What is your name?</question> ');
 }