id = $gateway->save($webmention); $this->assertNotNull($webmention->id); } public function testCanRetrieveAWebmention() { $gateway = new SqliteGateway(":memory:"); $webmention = new Webmention( null, "https://lewisdale.dev/post/a-post", "https://a-source.url", "No content", "Some Author Name" ); $webmention->id = $gateway->save($webmention); $retrieved = $gateway->get($webmention->id); $this->assertEquals($webmention, $retrieved, ((string) $webmention). " " . ((string) $retrieved)); } }