Add failing tests
CS fixes
Merge branch 'console-tests' of git://github.com/bakura10/zf2 into hotfix/3817
[#3817] Fix tests and conditional code

- Test cases that were added failed as they omitted mandatory literal
  parameters; added them to better illustrate the expected usage.
- Added explicit regex and conditional for optional long flags when
  parsing, resolving issues.
Merge branch 'hotfix/3817'

Close #3817