projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
only for PHP5
[m6w6/ext-http]
/
tests
/
url005.phpt
1
--TEST--
2
url as array
3
--SKIPIF--
4
<?php
5
include "skipif.inc";
6
?>
7
--FILE--
8
<?php
9
echo "Test\n";
10
11
$u = "http://user:pass@www.example.com:8080/path/file.ext".
12
"?foo=bar&more[]=1&more[]=2#hash";
13
14
$url = new http\Url($u);
15
$url2 = new http\Url($url->toArray());
16
var_dump($url->toArray() === $url2->toArray());
17
?>
18
DONE
19
--EXPECT--
20
Test
21
bool(true)
22
DONE