forked from phpv8/v8js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stefan Siegl
committed
Jan 7, 2016
1 parent
61febfb
commit 0945749
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--TEST-- | ||
Test V8::executeString() : Method access on derived classes | ||
--SKIPIF-- | ||
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> | ||
--FILE-- | ||
<?php | ||
|
||
class Foo extends \V8Js | ||
{ | ||
public function hello() | ||
{ | ||
print("Hello World\n"); | ||
} | ||
} | ||
|
||
$JS = <<< EOT | ||
PHP.hello(); | ||
EOT; | ||
|
||
$v8 = new Foo(); | ||
$v8->executeString($JS); | ||
|
||
?> | ||
===EOF=== | ||
--EXPECT-- | ||
Hello World | ||
===EOF=== |