From 33b3ff5e1fe7550aa4d45282d149abcb22be173d Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Mon, 25 Sep 2017 15:01:21 +0200 Subject: [PATCH] Revert "Renamed to unicode.phpt" This reverts commit 202f0beefa093139feabab361720338d83572391. --- tests/{unicode.phpt => unicode.php} | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) rename tests/{unicode.phpt => unicode.php} (72%) diff --git a/tests/unicode.phpt b/tests/unicode.php similarity index 72% rename from tests/unicode.phpt rename to tests/unicode.php index 4d0908d..a8825c9 100644 --- a/tests/unicode.phpt +++ b/tests/unicode.php @@ -1,28 +1,23 @@ --TEST Test V8::executeString() : Check if imported code works with some unicode symbols --SKIPIF-- - ---FILE-- setModuleLoader(function ($path) { - return file_get_contents($path . ".js"); -}); # insert unicode via php var $jscript->unicode = $unicode; @@ -30,33 +25,25 @@ $jscript->unicode = $unicode; # insert unicode via executeString $jscript->executeString("var execStr = {unicode: '" . $unicode . "'}"); -# insert unicode via commonJS module -file_put_contents("./$moduleFileBase.js", "module.exports = {unicode: '$unicode'}"); -$jscript->executeString("var module = require('./$moduleFileBase')"); - # return to php $jscript->executeString("values = {}"); if (V8_WITH_SNAPSHOT) { $jscript->executeString("values['snapshot'] = snapshot.unicode"); } else { - // if snapshots are not compiled shim this test + # shim this test $jscript->executeString("values['snapshot'] = '" . $unicode . "'"); } $jscript->executeString("values['php'] = php.unicode"); $jscript->executeString("values['execStr'] = execStr.unicode"); -$jscript->executeString("values['module'] = module.unicode"); $values = $jscript->executeString("values"); echo "snapshot: $values->snapshot\n"; echo "php : $values->php\n"; echo "execStr : $values->execStr\n"; -echo "module : $values->module\n"; ?> +===EOF=== --EXPECT-- snapshot: äöüßÜÄÖÜ߀áàâÁÀµ²³▁▂▃▄▅▆▇█    ㌀ ㌁ ㌂ ㌃ php : äöüßÜÄÖÜ߀áàâÁÀµ²³▁▂▃▄▅▆▇█    ㌀ ㌁ ㌂ ㌃ execStr : äöüßÜÄÖÜ߀áàâÁÀµ²³▁▂▃▄▅▆▇█    ㌀ ㌁ ㌂ ㌃ ---CLEAN-- - +===EOF===