Skip to content

Commit d23fccb

Browse files
committed
Add single character test case
1 parent ba7c631 commit d23fccb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/ArgvParserTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
class ArgvParserTest extends \PHPUnit_Framework_TestCase
88
{
99

10+
public function testSingleArgument()
11+
{
12+
$argvParser = new PHP_ArgvParser();
13+
14+
$string = '--ok';
15+
$result = $argvParser->parseConfigs($string);
16+
$this->assertEquals($result['ok'], true);
17+
}
18+
1019
public function testParseConfigs()
1120
{
1221
$argvParser = new PHP_ArgvParser();

0 commit comments

Comments
 (0)