You are here

public function Util_GetoptTest::testItIncludeTheLongOptionsAfterTheArgument in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/tests/Util/GetoptTest.php \Util_GetoptTest::testItIncludeTheLongOptionsAfterTheArgument()

File

vendor/phpunit/phpunit/tests/Util/GetoptTest.php, line 15

Class

Util_GetoptTest

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);
}