| 1 | <?php | ||
| 13 | class SpyingFileFetcher implements FileFetcher { | ||
| 14 | |||
| 15 | private $fileFetcher; | ||
| 16 | |||
| 17 | private $fetchedUrls = []; | ||
| 18 | |||
| 19 | 	public function __construct( FileFetcher $fileFetcher ) { | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @see FileFetcher::fetchFile | ||
| 25 | * | ||
| 26 | * @param string $fileUrl | ||
| 27 | * | ||
| 28 | * @return string | ||
| 29 | * @throws FileFetchingException | ||
| 30 | */ | ||
| 31 | 	public function fetchFile( $fileUrl ) { | ||
| 35 | |||
| 36 | /** | ||
| 37 | * Returns an ordered list of fetched URLs. Duplicates are preserved. | ||
| 38 | * | ||
| 39 | * @return string[] | ||
| 40 | */ | ||
| 41 | 	public function getFetchedUrls() { | ||
| 44 | |||
| 45 | } | ||
| 46 |