Created
January 28, 2020 22:50
-
-
Save yusufhm/3d87e77f41eb5128d06de678020dcbdf to your computer and use it in GitHub Desktop.
phpunit screenshot & html output
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
<?php | |
file_put_contents('public://screenshot.jpg', $this->getSession()->getScreenshot()); | |
file_put_contents('public://' . drupal_basename($this->getSession()->getCurrentUrl()) . '.html', $this->getCurrentPageContent()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment