0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-14 17:38:42 +00:00
phpv8/tests/inheritance_basic.phpt

31 lines
724 B
Plaintext
Raw Normal View History

2014-12-11 17:00:43 +00:00
--TEST--
Test V8Js : class inheritance
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
var_dump(class_exists('V8JsException'));
var_dump(class_exists('V8JsScriptException'));
var_dump(class_exists('V8JsTimeLimitException'));
var_dump(class_exists('V8JsMemoryLimitException'));
var_dump(is_subclass_of(new V8JsException(), 'RuntimeException'));
var_dump(is_subclass_of(new V8JsScriptException(), 'V8JsException'));
var_dump(is_subclass_of(new V8JsTimeLimitException(), 'V8JsException'));
var_dump(is_subclass_of(new V8JsMemoryLimitException(), 'V8JsException'));
?>
===EOF===
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
===EOF===