pharext\CliArgsTest::testParseHalt PHP Method

testParseHalt() public method

public testParseHalt ( )
    public function testParseHalt()
    {
        foreach ($this->args->parse(1, ["-hv"]) as $error) {
            throw new \Exception("Unexpected parse error: {$error}");
        }
        $this->assertTrue($this->args->help, "help");
        $this->assertNull($this->args->verbose, "verbose");
        $this->assertNull($this->args->quiet, "quiet");
        foreach ($this->args->parse(1, ["-vhq"]) as $error) {
            throw new \Exception("Unexpected parse error: {$error}");
        }
        $this->assertTrue($this->args->help);
        $this->assertTrue($this->args->verbose);
        $this->assertNull($this->args->quiet);
    }