--TEST-- Test V8::executeString() : return $this (aka fluent setters) --SKIPIF-- --FILE-- foo = $value; return $this; } public function setBar($value) { $this->bar = $value; return $this; } } $v8 = new V8Js(); $v8->theFoo = new Foo(); $v8->executeString(<<theFoo); ?> ===EOF=== --EXPECTF-- bool(true) bool(true) object(Foo)#%d (2) { ["foo":"Foo":private]=> int(23) ["bar":"Foo":private]=> int(42) } ===EOF===