Dummy   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A load() 0 4 1
A upload() 0 5 1
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
}