public function testReadFilesErrors()
 {
     $root = $this->tmpDir;
     file_put_contents($root . "/upload", "test");
     // make at least 10 files in the project
     for ($i = 0; $i < 12; $i++) {
         $this->client->uploadFile($root . "/upload", (new FileUploadOptions())->setTags(["docker-bundle-test"]));
     }
     // valid configuration, but does nothing
     $reader = new Reader($this->client);
     $configuration = [];
     $reader->downloadFiles($configuration, $root . "/download");
     // invalid configuration
     $reader = new Reader($this->client);
     $configuration = [[]];
     try {
         $reader->downloadFiles($configuration, $root . "/download");
         $this->fail("Invalid configuration should fail.");
     } catch (InvalidInputException $e) {
     }
     $reader = new Reader($this->client);
     $configuration = [['query' => 'id:>0 AND (NOT tags:table-export)']];
     try {
         $reader->downloadFiles($configuration, $root . "/download");
         $this->fail("Too broad query should fail.");
     } catch (InvalidInputException $e) {
         $this->assertContains('File input mapping downloads more than', $e->getMessage());
     }
     $reader = new Reader($this->client);
     $configuration = [['tags' => ['docker-bundle-test'], 'limit' => 12]];
     $reader->downloadFiles($configuration, $root . "/download");
 }