This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
Install the xvfb server by running
<?php | |
class FeatureContext extends MinkContext { | |
/** | |
* Take screenshot when step fails. Works only with Selenium2Driver. | |
* Screenshot is saved at [Date]/[Feature]/[Scenario]/[Step].jpg | |
* | |
* @AfterStep | |
*/ |
In order to generate and log a warning message about a deprecated Symfony feature, use the trigger_error()
function as follows:
trigger_error('The enctype method of the form helper was removed. You should use the new method start instead.', E_USER_DEPRECATED);
Please, be as explicit as possible in the deprecation message and always explain the alternative way to use that feature, property, method or class.
#!/usr/bin/env bash | |
# Use this one-liner to produce a JSON literal from the Git log: | |
git log \ | |
--pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' \ | |
$@ | \ | |
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \ | |
perl -pe 's/},]/}]/' |