-
Notifications
You must be signed in to change notification settings - Fork 380
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
List deprecation - closes #731 #787
Conversation
[30, 0], | ||
[null, 16], | ||
[37, null], | ||
[null, null] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was never supported.
198273d
to
1c5c7b2
Compare
bb55608
to
079a0a5
Compare
079a0a5
to
ea3b297
Compare
@@ -54,51 +54,51 @@ protected function createFilterConfiguration() | |||
|
|||
protected function getMockCacheManager() | |||
{ | |||
return $this->getMock('Liip\ImagineBundle\Imagine\Cache\CacheManager', array(), array(), '', false); | |||
return $this->getMockBuilder('Liip\ImagineBundle\Imagine\Cache\CacheManager')->getMock(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So happy someone is taking the time to update the test suite to remove PHPUnit 5.x deprecations. I have a similar branch that removes all getMock
methods in favor of getMockBuilder
. I'll wait until this is merged to submit my PR for this.
9f55b5d
to
de354bd
Compare
de354bd
to
91ee4c8
Compare
I'll defer writing the appropriate documentation until after #789 is merged, there should not be much of it. As a follow-up to this I may submit further PRs focusing purely on test coverage. |
What do you think @lsmith77 / @robfrawley ? |
@antoligy Looks great to me. New tests introduced increase total test coverage from 61.6% to 65.4% --- and increases total test coverage of 👍 |
Yeah thanks that feels pretty good! I might have another pass at writing some tests to further increase Loader coverage as there's definitely a few easy wins in there, but that I can do irrespective of this PR. The goal here was to remove |
Adding cross-reference to issue #731 (issues in titles don't create cross-reference links). |
{ | ||
$this->dimentionKey = $dimentionKey; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antoligy Wow, can't believe we had filters creating dynamic class properties...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it still does, I plan on restructuring this at a later date - The ScaleFilter is inherited by the DownscaleFilter and UpscaleFilter both of which use slightly different parameters.
Paging dr @lsmith77 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solid changes to fix changes in list
behavior. Also increases Loader
coverage from ~20% to ~50%.
list()
, due to its unpredictable nature between different versions of PHP.