Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
803f809c
Commit
803f809c
authored
Apr 01, 2013
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tests on Symfony <2.2
parent
c0d762f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/Silex/Tests/RouterTest.php
tests/Silex/Tests/RouterTest.php
+4
-0
No files found.
tests/Silex/Tests/RouterTest.php
View file @
803f809c
...
...
@@ -181,6 +181,10 @@ class RouterTest extends \PHPUnit_Framework_TestCase
public
function
testHostSpecification
()
{
if
(
!
method_exists
(
'Symfony\Component\Routing\Route'
,
'setHost'
))
{
$this
->
markTestSkipped
(
'host() is only supported in the Symfony Routing 2.2+'
);
}
$route
=
new
\Silex\Route
();
$this
->
assertSame
(
$route
,
$route
->
host
(
'{locale}.example.com'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment