use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
class UrlMatcherTest extends TestCase
{ public function testNoMethodSoAllowed() { $coll =
new RouteCollection();
$coll->
add('foo',
new Route('/foo'
));
$matcher =
$this->
getUrlMatcher($coll);
$this->
assertIsArray($matcher->
match('/foo'
));
} public function testMethodNotAllowed() { $coll =
new RouteCollection();
$coll->
add('foo',
new Route('/foo',
[],
[],
[], '',
[],
['post'
]));
$matcher =
$this->
getUrlMatcher($coll);
try {