From 4a8a8b812fc6dbb2d5249200a25f47e079461b0f Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 9 Jan 2016 19:15:12 +0100 Subject: [PATCH] Add test that V8Js::__sleep and V8Js::__wakeup are final --- tests/issue_183_005.phpt | 19 +++++++++++++++++++ tests/issue_183_006.phpt | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 tests/issue_183_005.phpt create mode 100644 tests/issue_183_006.phpt diff --git a/tests/issue_183_005.phpt b/tests/issue_183_005.phpt new file mode 100644 index 0000000..2cff423 --- /dev/null +++ b/tests/issue_183_005.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test V8::executeString() : Method access on derived classes (__sleep) +--SKIPIF-- + +--FILE-- + +===EOF=== +--EXPECTF-- +Fatal error: Cannot override final method V8Js::__sleep() in %s diff --git a/tests/issue_183_006.phpt b/tests/issue_183_006.phpt new file mode 100644 index 0000000..395e905 --- /dev/null +++ b/tests/issue_183_006.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test V8::executeString() : Method access on derived classes (__wakeup) +--SKIPIF-- + +--FILE-- + +===EOF=== +--EXPECTF-- +Fatal error: Cannot override final method V8Js::__wakeup() in %s