Source

						public function testConfigManipulation() {
		$config = MockDispatcher::config();
		$expected = array('rules' => array());
		$this->assertEqual($expected, $config);

		MockDispatcher::config(array('rules' => array(
			'admin' => array('action' => 'admin_{:action}')
		)));

		Router::connect('/', array('controller' => 'test', 'action' => 'test', 'admin' => true));
		MockDispatcher::run(new Request(array('url' => '/')));

		$result = end(MockDispatcher::$dispatched);
		$expected = array('action' => 'admin_test', 'controller' => 'Test', 'admin' => true);
		$this->assertEqual($expected, $result->params);
	}