Example #1
0
 /**
  * Test the isSsl method.
  *
  * @return  void
  *
  * @since   1.0
  * @covers  Joomla\Uri\Uri::isSsl
  */
 public function testisSsl()
 {
     $object = new Uri('https://*****:*****@www.example.com:80/path/file.html?var=value#fragment');
     $this->assertThat($object->isSsl(), $this->equalTo(true));
     $object = new Uri('http://*****:*****@www.example.com:80/path/file.html?var=value#fragment');
     $this->assertThat($object->isSsl(), $this->equalTo(false));
 }