3 * This file is part of PHPUnit.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
13 class Util_GetoptTest extends PHPUnit_Framework_TestCase
15 public function testItIncludeTheLongOptionsAfterTheArgument()
22 $actual = PHPUnit_Util_Getopt::getopt($args, '', array('colors=='));
36 $this->assertEquals($expected, $actual);
39 public function testItIncludeTheShortOptionsAfterTheArgument()
46 $actual = PHPUnit_Util_Getopt::getopt($args, 'v');
60 $this->assertEquals($expected, $actual);