0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-19 00:25:18 +00:00

Fix test cases which hard coded the object identity of returned objects.

This commit is contained in:
C. Scott Ananian 2013-10-29 15:26:16 -04:00
parent 7c5817c931
commit 30497766a3
8 changed files with 18 additions and 18 deletions

View File

@ -19,7 +19,7 @@ try {
?> ?>
===EOF=== ===EOF===
--EXPECTF-- --EXPECTF--
object(V8JsScriptException)#2 (11) { object(V8JsScriptException)#%d (11) {
["message":protected]=> ["message":protected]=>
string(75) "exception.js:1: ReferenceError: this_function_does_not_exist is not defined" string(75) "exception.js:1: ReferenceError: this_function_does_not_exist is not defined"
["string":"Exception":private]=> ["string":"Exception":private]=>

View File

@ -33,7 +33,7 @@ try {
?> ?>
===EOF=== ===EOF===
--EXPECTF-- --EXPECTF--
object(V8JsScriptException)#3 (11) { object(V8JsScriptException)#%d (11) {
["message":protected]=> ["message":protected]=>
string(49) "throw_0:1: ReferenceError: fooobar is not defined" string(49) "throw_0:1: ReferenceError: fooobar is not defined"
["string":"Exception":private]=> ["string":"Exception":private]=>

View File

@ -20,8 +20,8 @@ try {
} }
?> ?>
===EOF=== ===EOF===
--EXPECT-- --EXPECTF--
object(V8Object)#2 (1) { object(V8Object)#%d (1) {
["hello"]=> ["hello"]=>
string(5) "world" string(5) "world"
} }

View File

@ -22,10 +22,10 @@ try {
} }
?> ?>
===EOF=== ===EOF===
--EXPECT-- --EXPECTF--
array(2) { array(2) {
[0]=> [0]=>
object(V8Object)#3 (6) { object(V8Object)#%d (6) {
["0"]=> ["0"]=>
string(1) "F" string(1) "F"
["1"]=> ["1"]=>
@ -40,7 +40,7 @@ array(2) {
string(1) "r" string(1) "r"
} }
[1]=> [1]=>
object(V8Object)#4 (2) { object(V8Object)#%d (2) {
["0"]=> ["0"]=>
string(3) "foo" string(3) "foo"
["1"]=> ["1"]=>

View File

@ -42,7 +42,7 @@ try {
ctor called (php) ctor called (php)
Hello John Hello John
caught js exception caught js exception
object(V8JsScriptException)#3 (11) { object(V8JsScriptException)#%d (11) {
["message":protected]=> ["message":protected]=>
string(56) "ctor-test:4: Call to protected __construct() not allowed" string(56) "ctor-test:4: Call to protected __construct() not allowed"
["string":"Exception":private]=> ["string":"Exception":private]=>

View File

@ -71,7 +71,7 @@ try {
?> ?>
===EOF=== ===EOF===
--EXPECT-- --EXPECTF--
array(2) { array(2) {
[0]=> [0]=>
string(4) "arg1" string(4) "arg1"
@ -113,7 +113,7 @@ Mon, 08 Sep 1975 09:00:00 +0000
string(3) "foo" string(3) "foo"
array(3) { array(3) {
[0]=> [0]=>
object(Testing)#2 (3) { object(Testing)#%d (3) {
["foo"]=> ["foo"]=>
string(8) "ORIGINAL" string(8) "ORIGINAL"
["my_private":"Testing":private]=> ["my_private":"Testing":private]=>
@ -137,7 +137,7 @@ array(3) {
[1]=> [1]=>
string(3) "bar" string(3) "bar"
[2]=> [2]=>
object(Testing)#2 (3) { object(Testing)#%d (3) {
["foo"]=> ["foo"]=>
string(8) "ORIGINAL" string(8) "ORIGINAL"
["my_private":"Testing":private]=> ["my_private":"Testing":private]=>

View File

@ -34,12 +34,12 @@ $a->test_two = new A();
$a->executeString($js, 'foo'); $a->executeString($js, 'foo');
?> ?>
===EOF=== ===EOF===
--EXPECT-- --EXPECTF--
array(2) { array(2) {
[0]=> [0]=>
string(6) "Foobar" string(6) "Foobar"
[1]=> [1]=>
object(V8Object)#4 (2) { object(V8Object)#%d (2) {
["0"]=> ["0"]=>
string(3) "foo" string(3) "foo"
["1"]=> ["1"]=>
@ -50,7 +50,7 @@ array(2) {
[0]=> [0]=>
string(6) "Foobar" string(6) "Foobar"
[1]=> [1]=>
object(V8Object)#4 (2) { object(V8Object)#%d (2) {
["0"]=> ["0"]=>
string(3) "foo" string(3) "foo"
["1"]=> ["1"]=>
@ -61,7 +61,7 @@ array(2) {
[0]=> [0]=>
string(5) "a,b,c" string(5) "a,b,c"
[1]=> [1]=>
object(V8Object)#4 (2) { object(V8Object)#%d (2) {
["0"]=> ["0"]=>
string(3) "foo" string(3) "foo"
["1"]=> ["1"]=>
@ -72,7 +72,7 @@ array(2) {
[0]=> [0]=>
string(5) "a,b,c" string(5) "a,b,c"
[1]=> [1]=>
object(V8Object)#4 (2) { object(V8Object)#%d (2) {
["0"]=> ["0"]=>
string(3) "foo" string(3) "foo"
["1"]=> ["1"]=>

View File

@ -41,9 +41,9 @@ var_dump($a->executeString("test(true);", "test8.js"));
var_dump($a->executeString("test(false);", "test9.js")); var_dump($a->executeString("test(false);", "test9.js"));
?> ?>
===EOF=== ===EOF===
--EXPECT-- --EXPECTF--
NULL NULL
object(Testing)#2 (3) { object(Testing)#%d (3) {
["foo"]=> ["foo"]=>
string(8) "ORIGINAL" string(8) "ORIGINAL"
["my_private":"Testing":private]=> ["my_private":"Testing":private]=>