-
-
Notifications
You must be signed in to change notification settings - Fork 164
Test middleware runner to ensure next handler can be called more than once #238
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
Test middleware runner to ensure next handler can be called more than once #238
Conversation
2837578
to
d648444
Compare
tests/MiddlewareRunnerTest.php
Outdated
@@ -90,6 +90,42 @@ public function testProcessStack(array $middlewares, $expectedCallCount) | |||
} | |||
} | |||
|
|||
public function testCorruptMiddlewareStack() |
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.
The method name seems to imply something is "corrupt" here, can you update this to emphasize what is being tested here? :-) Otherwise LGTM 👍
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.
@clue fixed 👍
Will rebase it once approved |
tests/MiddlewareRunnerTest.php
Outdated
@@ -90,6 +90,42 @@ public function testProcessStack(array $middlewares, $expectedCallCount) | |||
} | |||
} | |||
|
|||
public function testNextCanBeRunMoreThenOnceWithoutCorruptingTheMiddlewareStack() |
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.
Then -> Than
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.
Fixed 👍
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.
LGTM, please squash and let's get this in!
958a1e8
to
fde33f7
Compare
Err whoops I think I accedently rebased my commit away 0_O. Will file a new PR -.- |
fde33f7
to
345b28e
Compare
Fixed the branch thanks to @jsor as mentioned in #245 (comment) |
No description provided.