Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function execute(TestInfo $testInfo): void |
||
28 | { |
||
29 | $parsed = \parse_url($testInfo->getRoot()); |
||
30 | $issuerHostAndPort = rtrim($parsed['host'] . ':' . ($parsed['port'] ?? ''), ':'); |
||
31 | |||
32 | $input = sprintf('acct:%s.%s@%s', $testInfo->getRpId(), $this->getTestId(), $issuerHostAndPort); |
||
33 | $issuer = (new IssuerBuilder()) |
||
34 | ->build($input); |
||
35 | |||
36 | $expected = sprintf('%s/%s/%s', $testInfo->getRoot(), $testInfo->getRpId(), $this->getTestId()); |
||
37 | Assert::assertSame($expected, $issuer->getMetadata()->getIssuer()); |
||
38 | } |
||
40 |