Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Conversation

weierophinney
Copy link
Member

Two paths were still using incorrect syntax, so this patch adds tests that will exercise those paths, and also fixes the bad syntax.

Two paths were still using incorrect syntax, so this patch adds tests
that will exercise those paths, and also fixes the bad syntax.

$this->auraMatcher->match($request)->willReturn($auraRoute);

$middleware = $this->getMiddleware();
Copy link
Member

Choose a reason for hiding this comment

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

The $middleware variable is not used

Copy link
Member Author

Choose a reason for hiding this comment

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

Will remove on merge; nice catch!

@weierophinney weierophinney deleted the hotfix/route-result-failure-args branch December 7, 2017 20:55
'bar' => 'baz',
]);

$this->auraMatcher->match($request)->willReturn($auraRoute);
Copy link
Member

Choose a reason for hiding this comment

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

Should we have $request->reveal() here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes... which is odd, as that should not work correctly otherwise...

Copy link
Member

Choose a reason for hiding this comment

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

Please see my PR:
https://github.com/zendframework/zend-expressive-zendrouter/pull/32/files
I'm not mocking the request, maybe you should do the same here?

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

Successfully merging this pull request may close these issues.

None yet

2 participants