8000 Revert "fixed tests" · DerekRoth/symfony@544b6ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 544b6ca

Browse files
committed
Revert "fixed tests"
This reverts commit 7dc3af6.
1 parent 0298f32 commit 544b6ca

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

tests/Symfony/Tests/Component/Routing/Fixtures/dumper/url_matcher1.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,6 @@ public function match($pathinfo)
117117

118118
}
119119

120-
// foo
121-
if (preg_match('#^/(?P<_locale>[^/]+?)/b/(?P<foo>[^/]+?)$#x', $pathinfo, $matches)) {
122-
$matches['_route'] = 'foo';
123-
return $matches;
124-
}
125-
126-
// bar
127-
if (preg_match('#^/(?P<_locale>[^/]+?)/b/(?P<bar>[^/]+?)$#x', $pathinfo, $matches)) {
128-
$matches['_route'] = 'bar';
129-
return $matches;
130-
}
131-
132120
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
133121
}
134122
}

tests/Symfony/Tests/Component/Routing/Matcher/Dumper/PhpMatcherDumperTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ public function testDump()
8282
$collection2->addCollection($collection1, '/b');
8383
$collection->addCollection($collection2, '/a');
8484

85-
// "dynamic" prefix
86-
$collection1 = new RouteCollection();
87-
$collection1->add('foo', new Route('/{foo}'));
88-
$collection1->add('bar', new Route('/{bar}'));
89-
$collection2 = new RouteCollection();
90-
$collection2->addCollection($collection1, '/b');
91-
$collection->addCollection($collection2, '/{_locale}');
92-
9385
$dumper = new PhpMatcherDumper($collection, new RequestContext());
9486
$this->assertStringEqualsFile(__DIR__.'/../../Fixtures/dumper/url_matcher1.php', $dumper->dump(), '->dump() dumps basic routes to the correct PHP file.');
9587

0 commit comments

Comments
 (0)
0