| 1 | <?php |
||
| 9 | class ScreenshotUploader |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var OutputInterface |
||
| 13 | */ |
||
| 14 | private $output; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Config |
||
| 18 | */ |
||
| 19 | private $config; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param OutputInterface $output |
||
| 23 | * @param Config $config |
||
| 24 | */ |
||
| 25 | public function __construct(OutputInterface $output, Config $config) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $screenshot |
||
| 33 | * @param string $fileName |
||
| 34 | */ |
||
| 35 | public function upload($screenshot, $fileName = 'failure.png') |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $imageUrl |
||
| 45 | */ |
||
| 46 | private function printImageLocation($imageUrl) |
||
| 53 | } |
||
| 54 |