Completed
Pull Request — master (#438)
by Albin
05:53
created

GCSSpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 4 1
A it_is_adapter() 0 4 1
A it_supports_metadata() 0 4 1
A it_is_list_keys_aware() 0 4 1
1
<?php
2
3
namespace spec\Gaufrette\Adapter\GCS;
4
5
use PhpSpec\ObjectBehavior;
6
7
class GCSSpec extends ObjectBehavior
8
{
9
    public function let(\Google_Service_Storage $service)
10
    {
11
        $this->beConstructedWith($service, 'bucketName');
12
    }
13
14
    public function it_is_adapter()
15
    {
16
        $this->shouldHaveType('Gaufrette\Adapter');
17
    }
18
19
    public function it_supports_metadata()
20
    {
21
        $this->shouldHaveType('Gaufrette\Adapter\MetadataSupporter');
22
    }
23
24
    public function it_is_list_keys_aware()
25
    {
26
        $this->shouldHaveType('Gaufrette\Adapter\ListKeysAware');
27
    }
28
}
29