/** * Tests the parse() method * * @return void * * @since 3.4 * @covers JComponentRouterView::parse */ public function testParse() { $rule = new TestComponentRouterRule($this->object); $this->object->attachRule($rule); $segments = array('testrun', 'getsdropped'); $this->assertEquals(array('testparse' => 'run'), $this->object->parse($segments)); $this->assertEquals(array('testrun'), $segments); }