EcomDev_PHPUnit
EcomDev_PHPUnit copied to clipboard
Controller Unit Test Improvements
While creating for another project a unit test for controller there appeared a problem:
They were not starting, found problem at lib/EcomDev/PHPUnit/Mock/Proxy.php
wich implements PHPUnit_Framework_MockObject_MockObject and is required to implement also function __phpunit_hasMatchers.
I have raised a PR which fixes this issue.
Also my IDE shows following error
. Fortunately for me this has not stopped testing controller
Apparently i don't have access to push so i will just post here what i have added. Hope this will help other
@Ig0r-M Fork this repository, push your changes to forked repo and create a pull request from it to this one.
@p-makowski thanks for clarifying. Raised PR #280 for this.
Regarding PHPStorm being noisy about method()
to be implemented is related to https://github.com/sebastianbergmann/phpunit/issues/1680.