assertSame(CrawlOutcomeEnum::Success, $result->outcome); $this->assertSame(200, $result->statusCode); $this->assertSame('https://example.com/article', $result->finalUrl); $this->assertSame('An Example Article', $result->title); $this->assertSame('Lorem ipsum dolor sit amet.', $result->extractedText); $this->assertInstanceOf(Collection::class, $result->outboundLinks); $this->assertSame(['https://other.com', 'https://another.com'], $result->outboundLinks->all()); $this->assertSame(5, $result->wordCount); $this->assertNull($result->errorMessage); } }