Skip to content

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

Merged

Conversation

WyriHaximus
Copy link
Member

No description provided.

@WyriHaximus WyriHaximus added this to the v0.8.0 milestone Oct 13, 2017
@WyriHaximus WyriHaximus requested review from jsor and clue October 13, 2017 06:12
@WyriHaximus WyriHaximus force-pushed the middleware-runner-correction-tests branch from 2837578 to d648444 Compare October 14, 2017 23:01
@@ -90,6 +90,42 @@ public function testProcessStack(array $middlewares, $expectedCallCount)
}
}

public function testCorruptMiddlewareStack()
Copy link
Member

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 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@clue fixed 👍

@WyriHaximus
Copy link
Member Author

Will rebase it once approved

@@ -90,6 +90,42 @@ public function testProcessStack(array $middlewares, $expectedCallCount)
}
}

public function testNextCanBeRunMoreThenOnceWithoutCorruptingTheMiddlewareStack()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then -> Than

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 👍

@clue clue changed the title Test for middleware stack corruption by the middleware runner Test middleware runner to ensure next handler can be called more than once Nov 14, 2017
Copy link
Member

@clue clue left a 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! :shipit:

@WyriHaximus WyriHaximus force-pushed the middleware-runner-correction-tests branch 2 times, most recently from 958a1e8 to fde33f7 Compare November 14, 2017 16:28
@WyriHaximus
Copy link
Member Author

Err whoops I think I accedently rebased my commit away 0_O. Will file a new PR -.-

@WyriHaximus
Copy link
Member Author

Fixed the branch thanks to @jsor as mentioned in #245 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy