forked from elvetemedve/behat-screenshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elvetemedve#58 Integration with Behat Cucumber Json Formatter (elvete…
…medve#59) * elvetemedve#58 Dispatch an event when file is uploaded. * Class names were renamed.
- Loading branch information
1 parent
3df8d34
commit e4661f2
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/Bex/Behat/ScreenshotExtension/Event/ScreenshotUploadCompleteEvent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
namespace Bex\Behat\ScreenshotExtension\Event; | ||
|
||
use Symfony\Contracts\EventDispatcher\Event; | ||
|
||
/** | ||
* Dispatches an event when screenshots are uploaded. | ||
*/ | ||
class ScreenshotUploadCompleteEvent extends Event | ||
{ | ||
const NAME = 'screenshot.uploader.upload_complete'; | ||
|
||
protected $filename = ''; | ||
|
||
public function __construct(string $filename) | ||
{ | ||
$this->filename = $filename; | ||
} | ||
|
||
public function getFilename() | ||
{ | ||
return $this->filename; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters