Example #1
0
 /**
  * Client parameters provider
  *
  * @return array
  */
 public function parameterProvider()
 {
     $parameters = [];
     $port = 9998;
     foreach (Client::getSupportedVersions() as $version) {
         $parameters[] = [[getenv('APACHE_TIKA_JARS') . '/tika-app-' . $version . '.jar']];
         $parameters[] = [['localhost', $port++]];
     }
     return $parameters;
 }
Example #2
0
 /**
  * Get the list of versions to test against
  *
  * @param null|string $name
  * @param array       $data
  * @param string      $dataName
  */
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     self::$versions = array_reverse(Client::getSupportedVersions());
 }