forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4.0.0] MVC Application and Router now must have a URI to process (ph…
- Loading branch information
1 parent
d50f2be
commit 952e96f
Showing
11 changed files
with
38 additions
and
140 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2017-XX-XX) | ||
- MVC Application and Router now must have a URI to process [#12380](https://github.com/phalcon/cphalcon/pull/12380) |
This file contains 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -110,7 +110,7 @@ function () { | |
return true; | ||
}); | ||
|
||
$router->handle(); | ||
$router->handle("/"); | ||
expect($router->wasMatched())->false(); | ||
|
||
$router->handle('/static/route'); | ||
|
@@ -526,7 +526,7 @@ function () { | |
] | ||
); | ||
|
||
$router->handle(); | ||
$router->handle("/"); | ||
|
||
expect($router->getControllerName())->equals('controller'); | ||
expect($router->getActionName())->equals('action'); | ||
|
@@ -536,36 +536,6 @@ function () { | |
); | ||
} | ||
|
||
/** | ||
* Tests setting different URI source | ||
* | ||
* @author Andy Gutierrez <[email protected]> | ||
* @since 2013-04-07 | ||
*/ | ||
public function testMatchingByUsingDifferentUriSource() | ||
{ | ||
$this->specify( | ||
'Matching uri when setting different uri source does not work as expected', | ||
function () { | ||
$router = $this->getRouter(false); | ||
|
||
$_GET['_url'] = '/some/route'; | ||
expect($router->getRewriteUri())->equals('/some/route'); | ||
|
||
$router->setUriSource(Router::URI_SOURCE_GET_URL); | ||
expect($router->getRewriteUri())->equals('/some/route'); | ||
|
||
$_SERVER['REQUEST_URI'] = '/some/route'; | ||
$router->setUriSource(Router::URI_SOURCE_SERVER_REQUEST_URI); | ||
|
||
expect($router->getRewriteUri())->equals('/some/route'); | ||
|
||
$_SERVER['REQUEST_URI'] = '/some/route?x=1'; | ||
expect($router->getRewriteUri())->equals('/some/route'); | ||
} | ||
); | ||
} | ||
|
||
protected function convertersProvider() | ||
{ | ||
return [ | ||
|
@@ -818,12 +788,6 @@ protected function methodProvider() | |
protected function routerProvider() | ||
{ | ||
return [ | ||
[ | ||
'uri' => '', | ||
'controller' => 'index', | ||
'action' => 'index', | ||
'params' => [] | ||
], | ||
[ | ||
'uri' => '/', | ||
'controller' => 'index', | ||
|