File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
- Check for rapidjson get value
2
+ Check for rapidjson get value and toString
3
3
--SKIPIF--
4
4
<?php if (!extension_loaded ("rapidjson " )) print "skip " ; ?>
5
5
--FILE--
Original file line number Diff line number Diff line change 1
1
--TEST--
2
- Check for rapidjson get value
2
+ Check for rapidjson __construct parse
3
3
--SKIPIF--
4
4
<?php if (!extension_loaded ("rapidjson " )) print "skip " ; ?>
5
5
--FILE--
6
6
<?php
7
7
$ str = '{"author":"Jason Young"} ' ;
8
- $ obj = new Rapidjson ();
9
- $ obj ->parse ($ str );
8
+ $ obj = new Rapidjson ($ str );
10
9
var_dump ($ obj ['author ' ]);
10
+ echo $ obj ;
11
11
?>
12
12
--EXPECT--
13
13
string(11) "Jason Young"
14
+ {
15
+ "author": "Jason Young"
16
+ }
Original file line number Diff line number Diff line change 1
1
--TEST--
2
- Check for rapidjson set value
2
+ Check for rapidjson traversal value
3
3
--SKIPIF--
4
4
<?php if (!extension_loaded ("rapidjson " )) print "skip " ; ?>
5
5
--FILE--
You can’t perform that action at this time.
0 commit comments