public function testInfo() { $stub = new AbstractFeatureImplementation(); $stub->setInfo('hello world'); $snippet = $this->snippetFromMethod(AbstractFeature::class, 'info'); $snippet->addLocal('imageProperties', $stub); $res = $snippet->invoke('info'); $this->assertEquals('hello world', $res->returnVal()); }