Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function testCallbackExceptionBubblesUp() { |
||
28 | $fetcher = new CallbackFileFetcher( function( string $fileUrl ) { |
||
29 | throw new FileFetchingException( $fileUrl ); |
||
30 | } ); |
||
31 | $invalidFileUrl = 'Such'; |
||
32 | |||
33 | $this->expectException( FileFetchingException::class ); |
||
34 | $this->expectExceptionMessage( 'Could not fetch file: ' . $invalidFileUrl ); |
||
35 | $fetcher->fetchFile( $invalidFileUrl ); |
||
36 | } |
||
37 | |||
39 |