示例#1
0
 /**
  * @covers ::configureIO
  */
 public function testConfigureIO()
 {
     $reflection = new \ReflectionClass(get_class($this->app));
     $method = $reflection->getMethod('configureIO');
     $method->setAccessible(true);
     $output = new ConsoleOutput();
     $input = new ArrayInput(['configuration' => serialize(new Configuration()), 'files' => serialize([])]);
     $method->invokeArgs($this->app, [$input, $output]);
     $this->assertTrue($input->hasArgument('configuration'));
     $this->assertTrue($input->hasArgument('files'));
     $this->assertTrue($input->hasOption('verbose'));
 }