-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Remove pimple as a supported container #133
Conversation
Signed-off-by: George Steel <george@net-glue.co.uk>
I'll have to come back to this later to resolve the psalm issues… |
Related to mezzio/mezzio#145 |
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
$this->container | ||
->expects($this->exactly(2)) | ||
->method('get') | ||
->withConsecutive( | ||
[RouterInterface::class], | ||
[TemplateRendererInterface::class], | ||
) | ||
->with(self::callback(static function (string $name): bool { | ||
self::assertTrue(in_array($name, [ | ||
RouterInterface::class, | ||
TemplateRendererInterface::class, | ||
])); | ||
|
||
return true; | ||
})) | ||
->willReturnOnConsecutiveCalls( | ||
$this->router, | ||
$renderer |
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.
Imo, replace mock with a stub and use return map.
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.
Or add return map since assumption about call older is brittle
eabb590
to
f857563
Compare
Signed-off-by: George Steel <george@net-glue.co.uk>
f857563
to
d73ad7b
Compare
Remove support for Pimple due to the abandonment of
laminas-pimple-config