| 1 | <?php |
||
| 14 | class ScreenshotTaker |
||
| 15 | { |
||
| 16 | /** @var Mink $mink */ |
||
| 17 | private $mink; |
||
| 18 | |||
| 19 | /** @var OutputInterface $output */ |
||
| 20 | private $output; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array $screenshots |
||
| 24 | */ |
||
| 25 | private $screenshots; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor |
||
| 29 | * |
||
| 30 | * @param Mink $mink |
||
| 31 | * @param OutputInterface $output |
||
| 32 | */ |
||
| 33 | public function __construct(Mink $mink, OutputInterface $output) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Save the screenshot as the given filename |
||
| 41 | */ |
||
| 42 | public function takeScreenshot() |
||
| 50 | |||
| 51 | public function getCombinedImage() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Remove previous images |
||
| 71 | */ |
||
| 72 | public function reset() |
||
| 76 | } |
||
| 77 |