Skip to content

[5.4] Add PHPUnit failures to MocksApplicationServices#18774

Merged
taylorotwell merged 2 commits into
laravel:5.4from
sebastiandedeyne:5.4
Apr 12, 2017
Merged

[5.4] Add PHPUnit failures to MocksApplicationServices#18774
taylorotwell merged 2 commits into
laravel:5.4from
sebastiandedeyne:5.4

Conversation

@sebastiandedeyne

Copy link
Copy Markdown
Contributor

By throwing an exception for failed assertions, tests that only expect events or dispatched jobs will be considered risky under PHPUnit's --report-useless-tests.

This PR replaces the exceptions with PHPUnit assertions for PHPUnit knows that an assertion did take place.

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