Skip to content

PathPrepend plugin: Only overwrite the request uri if it actually changed #663

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
merged 4 commits into from
Dec 12, 2017

Conversation

naderman
Copy link
Contributor

Fix bug introduced in #661

@Nyholm
Copy link
Collaborator

Nyholm commented Dec 11, 2017

Oh, I guess I was a bit too quick to review it. Should we do things properly this time? Could you add a small test?

@naderman
Copy link
Contributor Author

Should have done that the first time around, tests added :-)

Copy link
Collaborator

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Perfect. Thanks!

/**
* @author Nils Adermann <naderman@naderman.de>
*/
class PathPrependTest extends \PHPUnit_Framework_TestCase
Copy link
Collaborator

Choose a reason for hiding this comment

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

Travis complains. We should use PHPUnit 6

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, just extend from \PHPUnit\Framework\TestCase. This works in both phpunit 5 and 6

@Nyholm Nyholm merged commit 3667cee into KnpLabs:master Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants