This commit is contained in:
steven 2025-08-11 22:23:30 +02:00
commit 72a26edcff
22092 changed files with 2101903 additions and 0 deletions

View file

@ -0,0 +1,22 @@
<?php
namespace Spekulatius\PHPScraper\Tests;
use PHPUnit\Framework\TestCase;
class NotFoundTest extends TestCase
{
/**
* @test
*/
public function testPageMissing()
{
$web = new \Spekulatius\PHPScraper\PHPScraper;
// Navigate to the test page.
$web->go('https://test-pages.phpscraper.de/page-does-not-exist.html');
// The built-in server returns this string.
$this->assertSame('Page Not Found', $web->title);
}
}