mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 08:11:52 +00:00
Skip Generator export tests if not supported
This commit is contained in:
parent
89399fa961
commit
e2636b2e71
@ -1,7 +1,15 @@
|
|||||||
--TEST--
|
--TEST--
|
||||||
Test V8::executeString() : Generators PHP -> V8 (instantite in JS)
|
Test V8::executeString() : Generators PHP -> V8 (instantite in JS)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
<?php
|
||||||
|
require_once(dirname(__FILE__) . '/skipif.inc');
|
||||||
|
|
||||||
|
// Actually this check is a bit bad as it tests import, but currently
|
||||||
|
// there is no flag we can check for export
|
||||||
|
if (!class_exists('V8Generator')) {
|
||||||
|
die("skip Installed V8 version doesn't support generators");
|
||||||
|
}
|
||||||
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
--TEST--
|
--TEST--
|
||||||
Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP)
|
Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
<?php
|
||||||
|
require_once(dirname(__FILE__) . '/skipif.inc');
|
||||||
|
|
||||||
|
// Actually this check is a bit bad as it tests import, but currently
|
||||||
|
// there is no flag we can check for export
|
||||||
|
if (!class_exists('V8Generator')) {
|
||||||
|
die("skip Installed V8 version doesn't support generators");
|
||||||
|
}
|
||||||
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
--TEST--
|
--TEST--
|
||||||
Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP)
|
Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
<?php
|
||||||
|
require_once(dirname(__FILE__) . '/skipif.inc');
|
||||||
|
|
||||||
|
// Actually this check is a bit bad as it tests import, but currently
|
||||||
|
// there is no flag we can check for export
|
||||||
|
if (!class_exists('V8Generator')) {
|
||||||
|
die("skip Installed V8 version doesn't support generators");
|
||||||
|
}
|
||||||
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
--TEST--
|
--TEST--
|
||||||
Test V8::executeString() : Generators PHP -> V8 (yield from)
|
Test V8::executeString() : Generators PHP -> V8 (yield from)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
<?php
|
||||||
|
require_once(dirname(__FILE__) . '/skipif.inc');
|
||||||
|
|
||||||
|
// Actually this check is a bit bad as it tests import, but currently
|
||||||
|
// there is no flag we can check for export
|
||||||
|
if (!class_exists('V8Generator')) {
|
||||||
|
die("skip Installed V8 version doesn't support generators");
|
||||||
|
}
|
||||||
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
--TEST--
|
--TEST--
|
||||||
Test V8::executeString() : Generators PHP -> V8
|
Test V8::executeString() : Generators PHP -> V8
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
<?php
|
||||||
|
require_once(dirname(__FILE__) . '/skipif.inc');
|
||||||
|
|
||||||
|
// Actually this check is a bit bad as it tests import, but currently
|
||||||
|
// there is no flag we can check for export
|
||||||
|
if (!class_exists('V8Generator')) {
|
||||||
|
die("skip Installed V8 version doesn't support generators");
|
||||||
|
}
|
||||||
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user