public function testMeanings() { $snippet = $this->snippetFromMethod(Entity::class, 'meanings'); $snippet->addLocal('entity', $this->entity); $res = $snippet->invoke('meanings'); $this->assertEquals($this->options['meanings'], $res->returnVal()); }