public function testEntry() { $snippet = $this->snippetFromMethod(Logger::class, 'entry'); $snippet->addLocal('logger', $this->logger); $res = $snippet->invoke('entry'); $this->assertInstanceOf(Entry::class, $res->returnVal()); }