izartu API

Redirect extends RuntimeException
in package

FinalYes

A redirect: thrown by the code that decides it, and sent as a `Location` header by the front controller.

Throwing, instead of sending the header and calling exit on the spot, ends every request in one place and lets the tests follow a successful login, add, edit or delete: an exit would end the test run with them.

Table of Contents

Properties

$location  : string

Methods

__construct()  : mixed

Properties

$location read-only

public string $location

Methods

__construct()

public __construct(string $location) : mixed
Parameters
$location : string

Absolute URL path to redirect to.

On this page

Search results