If the expectation changes depending on what functions are available, then I'd say you're testing two different things. I think it would be better to skip those tests if they can't be run as-is and then create another set of tests (using the same dataProvider if that makes sense, or a single test otherwise) with `$this->fileinfo_supported` forcibly set to false to emulate the lack of fileinfo.

Otherwise you can end up with tests that fail when fileinfo is available but pass when it's not.