public function testReqArg() { $this->assertNull($this->args->configure); foreach ($this->args->parse(1, ["-c"]) as $error) { $this->assertStringMatchesFormat("%s--configure%srequires%sargument", $error); } $this->assertTrue(isset($error)); }