Dummy::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 2
1
<?php
2
3
namespace Bex\Behat\ScreenshotExtension\Driver;
4
5
use Bex\Behat\ScreenshotExtension\Driver\ImageDriverInterface;
6
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
9
class Dummy implements ImageDriverInterface
10
{
11
    /**
12
     * @param  ArrayNodeDefinition $builder
13
     */
14
    public function configure(ArrayNodeDefinition $builder)
15
    {
16
        // driver configuration tree should be built here
17
    }
18
19
    /**
20
     * @param  ContainerBuilder $container
21
     * @param  array            $config
22
     */
23
    public function load(ContainerBuilder $container, array $config)
24
    {
25
        // store the given configuration here
26
    }
27
28
29
    /**
30
     * @param string $binaryImage
31
     * @param string $filename
32
     *
33
     * @return string URL to the image
34
     */
35
    public function upload($binaryImage, $filename)
36
    {
37
        // upload the image here and return the image url
38
        return 'http://docs.behat.org/en/v2.5/_static/img/logo.png';
39
    }
40
}