This repository was archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix #5671 - console routing not correct #5720
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -841,6 +841,45 @@ public static function routeProvider() | |
| ) | ||
| ), | ||
|
|
||
| /** | ||
| * @bug ZF2-5671 | ||
| * @link https://github.com/zendframework/zf2/issues/5671 | ||
| */ | ||
| 'mandatory-literal-camel-case' => array( | ||
| 'FooBar', | ||
| array('FooBar'), | ||
| array(), | ||
| ), | ||
| 'mandatory-literal-camel-case-no-match' => array( | ||
| 'FooBar', | ||
| array('foobar'), | ||
| null, | ||
| ), | ||
| 'optional-literal-camel-case' => array( | ||
| '[FooBar]', | ||
| array('FooBar'), | ||
| array(), | ||
| ), | ||
| 'optional-literal-camel-case-no-match' => array( | ||
| '[FooBar]', | ||
| array('foobar'), | ||
| null, | ||
| ), | ||
| 'optional-literal-alternative-camel-case' => array( | ||
| '[ FooBar | FoozBar ]', | ||
| array('FooBar'), | ||
| array(), | ||
| ), | ||
| 'required-literal-alternative-camel-case' => array( | ||
| '( FooBar | FoozBar )', | ||
| array('FooBar'), | ||
| array(), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same problem in all of the above cases... this smells like regression. |
||
| ), | ||
| 'required-literal-alternative-camel-case-no-match' => array( | ||
| '( FooBar | FoozBar )', | ||
| array('baz'), | ||
| null, | ||
| ), | ||
|
|
||
| ); | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't understand this test case.
Why is the expected result an empty
array()? If you're defining a mandatory literal parameter, then the result must bearray('FooBar' => null)- see previous test cases.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.
Here's a block of literal parameters' test cases: https://github.com/mtymek/zf2/blob/9b97b51f0c1b00934999f81b6a7f4a4d217a7aa9/tests/ZendTest/Mvc/Router/Console/SimpleTest.php#L303-L362