-
Notifications
You must be signed in to change notification settings - Fork 59
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
Slim 4 support and PSR-15 #104
Conversation
"slim/slim": "~3.0", | ||
"phpunit/phpunit": "^4.0" | ||
"phpunit/phpunit": "^7.5", | ||
"slim/psr7": "^0.5.0" |
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.
We don't need Slim/psr7
as a dependency. We can use prophecies to write the unit tests.
*/ | ||
public function setUp() | ||
public function setUp(): void |
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.
As mentioned in my previous comment, we should use prophecies instead of using an actual implementation to test. I can rewrite the tests for this if you're not quite familiar with that.
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.
If you can, yes, I prefer if you rewrite the tests 😄.
Follow in #105 |
Added support for Slim 4 and PSR-15 (implements MiddlewareInterface).
Also updated composer.json to fit our needs (Slim 4 and PHP set to ^7.1)
Added type-hinting and PHPUnit tests.
I'm using slim/psr7 for tests, but only AppFactory::determineResponseFactory() in source code to let users keep their own providers.
Resolve #102