Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function testSimple() |
||
16 | { |
||
17 | $provider = new LinkCheckProvider(UrlParser::parseUrl("https://letsencrypt.org/getting-started/")); |
||
18 | |||
19 | $stream = new StandardOutputStream(); |
||
20 | $interceptor = new CachedStreamInterceptor(); |
||
21 | $stream->setInterceptor($interceptor); |
||
22 | $provider->setOutput($stream); |
||
23 | |||
24 | $provider->check(); |
||
25 | |||
26 | $this->assertContains("https://letsencrypt.org/privacy/ OK", $interceptor->getCache()); |
||
27 | } |
||
28 | } |