/** * @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()); }
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); }