Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 1a4053d

Browse files
committed
testing the verifyRequiredArgumner : add more test
1 parent 4613a81 commit 1a4053d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Zend/Console/GetoptTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ public function testVerifyRequiredArgument(){
284284

285285
$this->assertEquals( 'Option "a" requires a parameter.' , $e->getMessage() );
286286
}
287+
288+
$opts->addArguments( array( "-a", "apple") );
289+
$opts->parse();
290+
$opts->checkRequiredArguments();//-> no Exception here
287291
}
288292

289293
public function testEmptyRequiredOption(){

0 commit comments

Comments
 (0)