public function testGetAnyFileWhenHasTwoElements() { $files = [new File('test.zip', new Format\Zip()), new File('test.phar', new Format\Phar())]; $preferredFiles = $this->strategy->getPreferredFilesOrdered($files); $this->assertInstanceOf('\\Distill\\Format\\FormatInterface', $preferredFiles[0]->getFormat()); }