Completed
Pull Request — master (#435)
by Albin
09:27
created

S3Spec   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 27
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 4 1
A it_is_initializable() 0 4 1
A it_is_adapter() 0 4 1
A it_supports_metadata() 0 4 1
A it_supports_sizecalculator() 0 4 1
1
<?php
2
3
namespace spec\Gaufrette\Adapter\Aws;
4
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class S3Spec extends ObjectBehavior
9
{
10
    function let(\Aws\S3\S3Client $service)
11
    {
12
        $this->beConstructedWith($service, 'bucketName');
13
    }
14
15
    function it_is_initializable()
16
    {
17
        $this->shouldHaveType('Gaufrette\Adapter\Aws\S3');
18
    }
19
20
    function it_is_adapter()
21
    {
22
        $this->shouldHaveType('Gaufrette\Adapter');
23
    }
24
25
    function it_supports_metadata()
26
    {
27
        $this->shouldHaveType('Gaufrette\Adapter\MetadataSupporter');
28
    }
29
30
    function it_supports_sizecalculator()
31
    {
32
        $this->shouldHaveType('Gaufrette\Adapter\SizeCalculator');
33
    }
34
}
35