Skip to content
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

Fixing the parameter parser (see #1168) #1788

Merged
merged 2 commits into from
Aug 15, 2014
Merged

Conversation

kayue
Copy link
Contributor

@kayue kayue commented Aug 14, 2014

Rebased version of #1770

@@ -103,9 +103,10 @@ function it_should_parse_empty_request(
'criteria' => null,
),
$request
)->willReturn(array());
)->shouldBeCalled()->willReturn(array(array(), array()));
Copy link
Contributor

Choose a reason for hiding this comment

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

There is not need for calling shouldBeCalled() when you call willReturn(), it's just duplicating of prophecy calls.

@kayue
Copy link
Contributor Author

kayue commented Aug 15, 2014

Ping @pjedrzejewski

{
if (!isset($parameterNames)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is always true as $parameterNames is not defined.

pjedrzejewski pushed a commit that referenced this pull request Aug 15, 2014
Fixing the parameter parser (see #1168)
@pjedrzejewski pjedrzejewski merged commit 0315871 into Sylius:master Aug 15, 2014
@pjedrzejewski
Copy link
Member

Thanks @kayue!

@kayue kayue deleted the fix/parser branch August 15, 2014 13:29
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.

None yet

5 participants