Skip to content

Commit

Permalink
add basic test on issue phpv8#183
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Siegl committed Jan 7, 2016
1 parent 61febfb commit 0945749
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/issue_183_basic.phpt
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===

0 comments on commit 0945749

Please sign in to comment.