This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/four_oh_four/test.php
2024-01-15 14:31:51 +00:00

17 lines
400 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class FourOhFourTest extends ShimmiePHPUnitTestCase
{
public function test404Handler(): void
{
$this->get_page('not/a/page');
// most descriptive error first
$this->assert_text("No handler could be found for the page 'not/a/page'");
$this->assert_title('404');
$this->assert_response(404);
}
}