Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf1fcff

Browse files
committed
Test
Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
1 parent9f33bd2 commitaf1fcff

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

‎src/Symfony/Component/Routing/Tests/RouteTest.php‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,24 @@ public function testDefaults()
9696
$this->assertEquals(['foo' =>'foo','bar' =>'bar'],$route->getDefaults(),'->addDefaults() keep previous defaults');
9797
}
9898

99+
/**
100+
* @expectedDeprecation The controller definition "%s" must not begin with "\"
101+
*/
102+
publicfunctiontestSetDefaultsBackSlash()
103+
{
104+
$route =newRoute('/{foo}');
105+
$route->addDefaults(['_controller' =>'\bar']);
106+
}
107+
108+
/**
109+
* @expectedDeprecation The controller definition "%s" must not begin with "\"
110+
*/
111+
publicfunctiontestSetDefaultBackSlash()
112+
{
113+
$route =newRoute('/{foo}');
114+
$route->setDefault('_controller','\bar');
115+
}
116+
99117
publicfunctiontestRequirements()
100118
{
101119
$route =newRoute('/{foo}');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp