| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 36 | public function testParserFromUri()  | 
            ||
| 37 |     { | 
            ||
| 38 | $uri = 'http://example.com/';  | 
            ||
| 39 | |||
| 40 |         $loader = $this->prophesize('Chrisyue\PhpM3u8\Loader\LoaderInterface'); | 
            ||
| 41 | $loader->load($uri)->shouldBeCalledTimes(1)->willReturn(DummyM3u8Factory::createM3u8Content());  | 
            ||
| 42 | |||
| 43 | $parser = new Parser();  | 
            ||
| 44 | $parser->setLoader($loader->reveal());  | 
            ||
| 45 | $m3u8 = $parser->parseFromUri($uri);  | 
            ||
| 46 | |||
| 47 | $this->assertEquals($m3u8, DummyM3u8Factory::createM3u8());  | 
            ||
| 48 | }  | 
            ||
| 49 | }  | 
            ||
| 50 |