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

Appearance settings

[Tests] Change to willThrowException #29672

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

Merged
merged 1 commit into from
Dec 23, 2018

Conversation

gmponos
Copy link
Contributor

@gmponos gmponos commented Dec 22, 2018

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

Trivial changes of will($this->throwException()); to willThrowException();

Do you think it's worth it ti create a PR to change ->will($this->returnValue());

@gmponos gmponos changed the title Change to willThrowException [Tests] Change to willThrowException Dec 23, 2018
@fabpot fabpot changed the base branch from master to 3.4 December 23, 2018 14:05
@fabpot fabpot force-pushed the change_will_throw_exception_unit_tests branch from e581f02 to 0695834 Compare December 23, 2018 14:05
@fabpot
Copy link
Member

fabpot commented Dec 23, 2018

Thank you @gmponos.

@fabpot fabpot merged commit 0695834 into symfony:3.4 Dec 23, 2018
fabpot added a commit that referenced this pull request Dec 23, 2018
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #29672).

Discussion
----------

[Tests] Change to willThrowException

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

Trivial changes of `will($this->throwException());` to `willThrowException();`

Do you think it's worth it ti create a PR to change `->will($this->returnValue());`

Commits
-------

0695834 [Tests] Change to willThrowException
@gmponos gmponos deleted the change_will_throw_exception_unit_tests branch December 23, 2018 15:12
@gmponos
Copy link
Contributor Author

gmponos commented Dec 23, 2018

Do you think it's worth it ti create a PR to change ->will($this->returnValue());

@fabpot I saw that you created a related issue to php-cs-fixer maybe one more issue should exist also for the above...

Until then would you accept a PR for that or is it an overhead and will cause conficts.. (there are hundred of changes)

One more thing that I've noticed on tests is this:

// Identented on arrow
$this->getMockBuilder(Whatever::class)
     ->getMock();
// Identented according to spaces..
$this->getMockBuilder(Whatever::class)
   ->getMock();

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

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.