ru_php/ext/uri/tests/032.phpt

18 lines
428 B
PHP

--TEST--
Test JSON encoding
--EXTENSIONS--
uri
--FILE--
<?php
$uri = new Uri\Rfc3986\Uri("https://username:password@www.example.com:8080/pathname1/pathname2/pathname3?query=true#hash-exists");
var_dump(json_encode($uri));
$url = new Uri\WhatWg\Url("https://username:password@www.example.com:8080/pathname1/pathname2/pathname3?query=true#hash-exists");
var_dump(json_encode($url));
?>
--EXPECT--
string(2) "{}"
string(2) "{}"