Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Test abort behavior #51787

Closed
wants to merge 2 commits into from
Closed

Conversation

seriquynh
Copy link
Contributor

I add some tests for abort behavior:

  • Application::abort() method throws NotFoundHttpException if code is 404.
  • Application::abort() method throws HttpException if code is not 404.
  • Application::abort() method accepts headers as an array.
  • abort() function receives code as a Symfony Response instance.
  • abort() function receives code as a Responable implementation.
  • abort() function forwards call to Application::abort() if code is not a Symfony Response instance or a Responable implementation.

@taylorotwell
Copy link
Member

Send to 11.x branch please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants