Ejemplo n.º 1
0
 /**
  * Is the URL breakdown working?
  *
  * @access public
  */
 public function testUrlBreakdown()
 {
     // Set some POST variables before we breakdown the URL
     $_POST['bar'] = 'foo';
     $_SERVER['foobar'] = 'barfoo';
     // Load the config file
     Core\Request::setUrlFragments('/index/foo/bar/foobar', true);
     // Controller okay?
     $this->assertEquals(Core\Request::get('controller'), 'Index');
     // Action okay?
     $this->assertEquals(Core\Request::get('action'), 'foo');
 }