Home
last modified time | relevance | path

Searched refs:uploader (Results 1 – 2 of 2) sorted by relevance

/web-bugs/tests/Unit/Utils/
H A DUploaderTest.php22 $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');
/web-bugs/src/Utils/
H A DPatchTracker.php20 private $uploader; variable in App\\Utils\\PatchTracker
49 public function __construct(\PDO $dbh, Uploader $uploader, string $uploadsDir) argument
54 $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 4 milliseconds