| @@ 61-68 (lines=8) @@ | ||
| 58 | 'https' => $this->createMock(URLHandlerInterface::class), |
|
| 59 | ]; |
|
| 60 | ||
| 61 | foreach ($handlers as $scheme => $handler) { |
|
| 62 | $handler |
|
| 63 | ->expects($this->once()) |
|
| 64 | ->method('validate') |
|
| 65 | ->willReturnCallback(function (array $urls) use ($scheme, $groups) { |
|
| 66 | $this->assertEqualsCanonicalizing($groups[$scheme], $urls); |
|
| 67 | }); |
|
| 68 | } |
|
| 69 | ||
| 70 | $this->configureUrlHandlerRegistry($handlers); |
|
| 71 | ||
| @@ 96-103 (lines=8) @@ | ||
| 93 | 'http' => $this->createMock(URLHandlerInterface::class), |
|
| 94 | ]; |
|
| 95 | ||
| 96 | foreach ($handlers as $scheme => $handler) { |
|
| 97 | $handler |
|
| 98 | ->expects($this->once()) |
|
| 99 | ->method('validate') |
|
| 100 | ->willReturnCallback(function (array $urls) use ($scheme, $groups) { |
|
| 101 | $this->assertEqualsCanonicalizing($groups[$scheme], $urls); |
|
| 102 | }); |
|
| 103 | } |
|
| 104 | ||
| 105 | $this->configureUrlHandlerRegistry($handlers); |
|
| 106 | ||