public function Util_GetoptTest::testItIncludeTheShortOptionsAfterTheArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/tests/Util/GetoptTest.php \Util_GetoptTest::testItIncludeTheShortOptionsAfterTheArgument()
File
- vendor/
phpunit/ phpunit/ tests/ Util/ GetoptTest.php, line 39
Class
Code
public function testItIncludeTheShortOptionsAfterTheArgument() {
$args = array(
'command',
'myArgument',
'-v',
);
$actual = PHPUnit_Util_Getopt::getopt($args, 'v');
$expected = array(
array(
array(
'v',
null,
),
),
array(
'myArgument',
),
);
$this
->assertEquals($expected, $actual);
}