public function testExtractToTxt()
 {
     $doc = new TikaWrapper($this->resource, $this->client);
     $dir = sys_get_temp_dir() . '/' . md5(time()) . '_tikaxtract';
     $file = $dir . '/' . time() . '.txt';
     mkdir($dir);
     $doc->extractTo($file, false);
     $this->assertFileExists($file);
     $this->assertFileNotExists($dir . '/image1.png');
 }