assertTrue($exceptionWithRedirect->hasRedirect()); } public function testDoesNotHaveRedirect() { $exceptionWithoutRedirect = OAuthServerException::accessDenied('Some hint'); $this->assertFalse($exceptionWithoutRedirect->hasRedirect()); } }