init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
22
lib/sc/tests/NotFoundTest.php
Normal file
22
lib/sc/tests/NotFoundTest.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue