예제 #1
0
 public function testToArray()
 {
     $expected = array('scheme' => 'http', 'user' => 'anonymous', 'pass' => 'guest', 'host' => 'example.com', 'subdomain' => null, 'registrableDomain' => 'example.com', 'publicSuffix' => 'com', 'port' => 8080, 'path' => '/path/to/index.php/foo/bar.xml', 'query' => 'baz=dib', 'fragment' => 'anchor');
     $this->assertEquals($expected, $this->url->toArray());
 }
예제 #2
0
 public function test__toString()
 {
     $this->assertEquals($this->spec, $this->url->__toString());
 }