From b9b4e389b02e84d0eda1a794722ed5ee30e7fa6a Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Thu, 11 Aug 2016 20:58:46 -0700 Subject: [PATCH] Update test expectations --- tests/extensions_basic.phpt | 4 +++- tests/extensions_circular_dependency.phpt | 12 +++++++----- tests/variable_passing.phpt | 1 + 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/extensions_basic.phpt b/tests/extensions_basic.phpt index 9234c7e..f18a7f8 100644 --- a/tests/extensions_basic.phpt +++ b/tests/extensions_basic.phpt @@ -8,7 +8,9 @@ Test V8::registerExtension() : Basic extension registering V8Js::registerExtension('a', 'print("world!\n");', array('b')); V8Js::registerExtension('b', 'print("Hello ");'); -var_dump(V8JS::getExtensions()); +$extensions = V8JS::getExtensions(); +ksort($extensions); +var_dump($extensions); $a = new V8Js('myobj', array(), array('a')); ?> diff --git a/tests/extensions_circular_dependency.phpt b/tests/extensions_circular_dependency.phpt index f792e94..c538a7f 100644 --- a/tests/extensions_circular_dependency.phpt +++ b/tests/extensions_circular_dependency.phpt @@ -8,7 +8,9 @@ Test V8::registerExtension() : Circular dependencies V8Js::registerExtension('a', 'print("A");', array('b')); V8Js::registerExtension('b', 'print("B");', array('a')); -var_dump(V8JS::getExtensions()); +$extensions = V8JS::getExtensions(); +ksort($extensions); +var_dump($extensions); $a = new V8Js('myobj', array(), array('a')); ?> @@ -36,10 +38,10 @@ array(2) { } } -Warning: Fatal V8 error in v8::Context::New(): Circular extension dependency in %s on line 8 +Warning: Fatal V8 error in v8::Context::New(): Circular extension dependency in %s on line %d -Fatal error: Uncaught V8JsException: Failed to create V8 context. Check that registered extensions do not have errors. in %s:8 +Fatal error: Uncaught V8JsException: Failed to create V8 context. Check that registered extensions do not have errors. in %s:%d Stack trace: -#0 %s(8): V8Js->__construct('myobj', Array, Array) +#0 %s(%d): V8Js->__construct('myobj', Array, Array) #1 {main} - thrown in %s on line 8 + thrown in %s on line %d diff --git a/tests/variable_passing.phpt b/tests/variable_passing.phpt index 3b99ead..a25f5b4 100644 --- a/tests/variable_passing.phpt +++ b/tests/variable_passing.phpt @@ -44,6 +44,7 @@ $a->executeString($JS, "test.js"); // Check that variable has not been modified var_dump($a->somevar); +$a = NULL; ?> ===EOF=== --EXPECT--