0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-08 14:48:40 +00:00
phpv8/tests/issue_183_005.phpt

20 lines
342 B
Plaintext
Raw Normal View History

--TEST--
Test V8::executeString() : Method access on derived classes (__sleep)
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
class Foo extends \V8Js
{
public function __sleep()
{
var_dump("foo");
}
}
?>
===EOF===
--EXPECTF--
Fatal error: Cannot override final method V8Js::__sleep() in %s