pharext\CliArgsTest::testParseNothing PHP Method

testParseNothing() public method

public testParseNothing ( )
    public function testParseNothing()
    {
        $generator = $this->args->parse(0, []);
        $this->assertInstanceOf("Generator", $generator);
        foreach ($generator as $error) {
            throw new \Exception("Unexpected parse error: {$error}");
        }
    }