Exemplo n.º 1
0
 /**
  * @test
  */
 public function settingOptions()
 {
     $this->assertFalse($this->opts->isVerbose());
     $this->assertFalse($this->opts->isQuiet());
     $this->assertFalse($this->opts->hasRelaxedValidation());
     $this->assertTrue($this->opts->setQuiet(true)->isQuiet());
     $this->assertTrue($this->opts->setVerbose(true)->isVerbose());
     $this->assertTrue($this->opts->setRelaxedValidation(true)->hasRelaxedValidation());
     $this->assertStringMatchesFormat('-v -q -r', $this->opts->__toString());
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     $args = new Arguments();
     $args['pdf'] = __DIR__ . '/../_files/test.pdf';
     $args['fo'] = __DIR__ . '/../_files/test.fo';
     $opts = new Options();
     $opts->setVerbose(true);
     $this->command = new Command($args, $opts);
 }