| @@ 100-106 (lines=7) @@ | ||
| 97 | * @param \eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest $request |
|
| 98 | * @param $expectedMatch |
|
| 99 | */ |
|
| 100 | public function testMatch(SimplifiedRequest $request, $expectedMatch) |
|
| 101 | { |
|
| 102 | $compoundMatcher = $this->buildMatcher(); |
|
| 103 | $compoundMatcher->setRequest($request); |
|
| 104 | $compoundMatcher->setMatcherBuilder(new MatcherBuilder()); |
|
| 105 | $this->assertSame($expectedMatch, $compoundMatcher->match()); |
|
| 106 | } |
|
| 107 | ||
| 108 | public function testSetRequest() |
|
| 109 | { |
|
| @@ 92-98 (lines=7) @@ | ||
| 89 | * @param \eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest $request |
|
| 90 | * @param string $expectedMatch |
|
| 91 | */ |
|
| 92 | public function testMatch(SimplifiedRequest $request, $expectedMatch) |
|
| 93 | { |
|
| 94 | $compoundMatcher = $this->buildMatcher(); |
|
| 95 | $compoundMatcher->setRequest($request); |
|
| 96 | $compoundMatcher->setMatcherBuilder(new MatcherBuilder()); |
|
| 97 | $this->assertSame($expectedMatch, $compoundMatcher->match()); |
|
| 98 | } |
|
| 99 | ||
| 100 | public function matchProvider() |
|
| 101 | { |
|