Searched refs:uploader (Results 1 – 2 of 2) sorted by relevance
22 $uploader = $this->getMockBuilder(Uploader::class)26 $uploader->expects($this->once())30 $uploader->expects($this->once())34 $uploader->setMaxFileSize(100 * 1024);35 $uploader->setValidExtension($validExtension);36 $uploader->setDir(TEST_VAR_DIRECTORY . '/uploads');37 $tmpFile = $uploader->upload('uploaded');
20 private $uploader; variable in App\\Utils\\PatchTracker49 public function __construct(\PDO $dbh, Uploader $uploader, string $uploadsDir) argument54 $this->uploader = $uploader;55 $this->uploader->setMaxFileSize(self::MAX_FILE_SIZE);56 $this->uploader->setValidMediaTypes(self::VALID_MEDIA_TYPES);153 $this->uploader->setDir($this->getPatchDir($bugId, $name));161 $this->uploader->setDestinationFileName($this->getPatchFileName($revision));173 $this->uploader->upload($patch);
Completed in 5 milliseconds