public function testPoint() { $snippet = $this->snippetFromMethod(GeoPoint::class, 'point'); $snippet->addLocal('point', $this->gp); $res = $snippet->invoke('point'); $this->assertEquals($this->point, $res->returnVal()); }