Source

						public function testParseGnuStyleLongOptions() {
		$expected = array(
			'command' => 'test', 'action' => 'run', 'args' => array(),
			'case' => 'lithium.tests.cases.console.RouterTest'
		);
		$result = Router::parse(new Request(array(
			'args' => array(
				'test', 'run',
				'--case=lithium.tests.cases.console.RouterTest'
			)
		)));
		$this->assertEqual($expected, $result);

		$expected = array(
			'command' => 'test', 'action' => 'run', 'args' => array(),
			'case' => 'lithium.tests.cases.console.RouterTest',
			'phase' => 'drowning'
		);
		$result = Router::parse(new Request(array(
			'args' => array(
				'test',
				'--case=lithium.tests.cases.console.RouterTest',
				'--phase=drowning'
			)
		)));
		$this->assertEqual($expected, $result);
	}