derived_class_properties.phpt 407 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Test V8::executeString() : Properties on derived class
  3. --SKIPIF--
  4. <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
  5. --FILE--
  6. <?php
  7. class V8Wrapper extends V8Js {
  8. public $testing;
  9. public function __construct() {
  10. parent::__construct();
  11. $this->testing = 23;
  12. }
  13. }
  14. $v8 = new V8Wrapper();
  15. $v8->executeString('print("foo\n");');
  16. ?>
  17. ===EOF===
  18. --EXPECT--
  19. foo
  20. ===EOF===