Ejemplo n.º 1
0
 public function testBug29408()
 {
     $this->setMwGlobals('wgUser', self::$users['uploader']->user);
     $repo = RepoGroup::singleton()->getLocalRepo();
     $stash = new UploadStash($repo);
     // Throws exception caught by PHPUnit on failure
     $file = $stash->stashFile($this->bug29408File);
     // We'll never reach this point if we hit bug 29408
     $this->assertTrue(true, 'Unrecognized file without extension');
     $stash->removeFile($file->getFileKey());
 }