for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bex\Behat\ScreenshotExtension\Driver;
use Bex\Behat\ScreenshotExtension\Driver\ImageDriverInterface;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class Dummy implements ImageDriverInterface
{
/**
* @param ArrayNodeDefinition $builder
*/
public function configure(ArrayNodeDefinition $builder)
// driver configuration tree should be built here
}
* @param ContainerBuilder $container
* @param array $config
public function load(ContainerBuilder $container, array $config)
// store the given configuration here
* @param string $binaryImage
* @param string $filename
*
* @return string URL to the image
public function upload($binaryImage, $filename)
// upload the image here and return the image url
return 'http://docs.behat.org/en/v2.5/_static/img/logo.png';