Fix to be able to set phpunit-mock-objects stub to the return value of method - #170
Conversation
|
@ytetsuro Would you please add a test in https://github.com/kenjis/ci-app-for-ci-phpunit-test/blob/master/application/tests/_tests/CIPHPUnitTestDouble_test.php? And it seems your code is not compatible with PHPUnit 6.0. |
|
@ytetsuro P.S. Not chain method, but method chaining. |
add test code for kenjis/ci-phpunit-test#170
Okay, you are right. PHPUnit 6.0: https://travis-ci.org/kenjis/ci-phpunit-test/jobs/201314674 |
|
merged very thanks!! |
|
confirmed.
However, with my change, you can set the return value of The return value of Example)
My explanation is insufficient. very very sorry. |
|
@ytetsuro No problem. I intend only I don't recommend you use returning like |
|
Certainly. |
I think that this pull request is effective when a chain method is described.
For example, in the case of the following processing
It can be implemented as follows.