Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function resolvesExpectedDomain(?string $domain): void |
||
25 | { |
||
26 | $result = $this->domainResolver->resolveDomain($domain); |
||
27 | |||
28 | if ($domain === null) { |
||
29 | $this->assertNull($result); |
||
30 | } else { |
||
31 | $this->assertInstanceOf(Domain::class, $result); |
||
32 | $this->assertEquals($domain, $result->getAuthority()); |
||
33 | } |
||
42 |