As long as I don’t know any phpunit option (this does not mean that it does not exist), you can simply use something like the following:
public function providerNewFileProvider()
{
$files = $this->providerOldFileProvider();
if (empty($files)) {
$files[] = array(false,false);
}
return $files;
}
public function testMyFilesTest($firstArg,$secondArg)
{
if (false === $firstArg) {
$this->markTestSkipped('No files to test');
}
}
, , . , , , , ( ) false, .