zendframework/zf1 — pull request #454 by a-lucas (2014-11-03 05:22:34+00:00)
Title: Zend_Console_Getopt: Missing required parameter consumes next option as its parameter value

Hello here,

Following up on bug https://github.com/zendframework/zf1/issues/377#issuecomment-46233687 ,
I created an easy fix for the moment.

I wanted to make the function checkRequiredArguments private, and automatically call it at the end of teh parse() function, but this breaks few tests because these tests assume a required value can be null.

2 tests are added :

*testVerifyRequiredArgument()* test the public function verifyRequiredArguments()

and *testEmptyRequiredOption()* shows the correct behavior.