Ejemplo n.º 1
0
 /**
  * @dataProvider casesArgs
  *
  * @covers ::args
  *
  * @param string $expected
  * @param array $args
  */
 public function testArgs($expected, $args)
 {
     $commandArguments = new CommandArgumentsHost();
     $commandArguments->args($args);
     $this->guy->assertEquals($expected, $commandArguments->getArguments());
     if ($args) {
         $commandArguments = new CommandArgumentsHost();
         call_user_func_array([$commandArguments, 'args'], $args);
         $this->guy->assertEquals($expected, $commandArguments->getArguments());
     }
 }