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