Skip to content

Commit f528c5b

Browse files
author
Jason Young
committed
organise tests
1 parent 70cc5cc commit f528c5b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

tests/001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Check for rapidjson get value
2+
Check for rapidjson get value and toString
33
--SKIPIF--
44
<?php if (!extension_loaded("rapidjson")) print "skip"; ?>
55
--FILE--

tests/002.phpt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
--TEST--
2-
Check for rapidjson get value
2+
Check for rapidjson __construct parse
33
--SKIPIF--
44
<?php if (!extension_loaded("rapidjson")) print "skip"; ?>
55
--FILE--
66
<?php
77
$str = '{"author":"Jason Young"}';
8-
$obj = new Rapidjson();
9-
$obj->parse($str);
8+
$obj = new Rapidjson($str);
109
var_dump($obj['author']);
10+
echo $obj;
1111
?>
1212
--EXPECT--
1313
string(11) "Jason Young"
14+
{
15+
"author": "Jason Young"
16+
}

tests/004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Check for rapidjson set value
2+
Check for rapidjson traversal value
33
--SKIPIF--
44
<?php if (!extension_loaded("rapidjson")) print "skip"; ?>
55
--FILE--

0 commit comments

Comments
 (0)