Table of Contents

tests/unit/HandleRequestTest.php

Source: tests/unit/HandleRequestTest.php · 617 lines, ~3602 statements · namespace: (global) · `declare(strict_types=1)`: no


Unit tests for the static front-end request dispatcher HandleRequest.

Every dispatch branch is exercised through a mocked ThemeRendererInterface installed via HandleRequest::setThemeRenderer(), so no real theme template is included and no process-exiting redirect (direct_page()) is triggered.

In-process untestable branches (documented, not asserted): \ - deliverQueryPost/Category/Page/Archive/Tag/Download when the query

 value is empty: they call direct_page(), which exits the PHP process.

Imports

Alias Fully-qualified name
TestCase PHPUnit\Framework\TestCase

Types declared here


Generated by 'tools/gendoc'.