Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] Replace exception mocks with actual exception instances.#10621

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.3fromjakzal:security-tests-fix
Apr 3, 2014

Conversation

@jakzal
Copy link
Contributor

It is done for two reasons:

  • consistency - we use real exception objects in most of the code
  • latest phpunit does not like the way we were creating mocks for exceptions (it could be also fixed by letting phpunit to call the original constructor)

It is done for two reasons:* consistency - we use real exception objects in most of the code* latest phpunit does not like the way we were creating mocks for exceptions (it could be also fixed by letting phpunit to call the original constructor)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

could we pass a real exception instead of a classname?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not in this specific case, since one of the exception classes here is abstract (Symfony\Component\Security\Core\Exception\AccountStatusException).

fabpot added a commit that referenced this pull requestApr 3, 2014
… instances. (jakzal)This PR was merged into the 2.3 branch.Discussion----------[Security] Replace exception mocks with actual exception instances.It is done for two reasons:* consistency - we use real exception objects in most of the code* latest phpunit does not like the way we were creating mocks for exceptions (it could be also fixed by letting phpunit to call the original constructor)Commits-------9438f88 [Security] Replace exception mocks with actual exception instances.
@fabpotfabpot merged commit9438f88 intosymfony:2.3Apr 3, 2014
@jakzaljakzal deleted the security-tests-fix branchApril 3, 2014 06:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@jakzal@romainneutron@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp