Пример #1
0
 /**
  * Tests createURI() method
  *
  * @param   array   $url         valid inputs to the createURI() method
  * @param   array   $globalVars  global Vars that should be merged into the URL
  * @param   string  $expected    expected URI string
  *
  * @dataProvider casesCreateURI
  *
  * @return void
  *
  * @since  3.4
  */
 public function testCreateURI($url, $globalVars, $expected)
 {
     $this->object->setVars($globalVars, false);
     $juri = $this->object->runCreateURI($url);
     $this->assertTrue(is_a($juri, 'JUri'));
     $this->assertEquals($juri->toString(), $expected);
 }