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