loadComponent('TestSecurity', ['className' => TestSecurityComponent::class]); } /** * fail method * * @return void */ public function fail(): void { $this->failed = true; } /** * @inheritDoc */ public function redirect($url, ?int $status = null): ?Response { return $status; } /** * Convenience method for header() * * @return void */ public function header(string $status): void { $this->testHeaders[] = $status; } }