Completed
Push — 2.0 ( 7d8e65...8bf5f4 )
by Stig
01:37
created

CropEntropySpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 1
cbo 1
dl 0
loc 17
rs 10
1
<?php
2
3
namespace spec\Stojg\Crop;
4
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class CropEntropySpec extends ObjectBehavior
9
{
10
    function it_is_initializable()
1 ignored issue
show
Coding Style introduced by
Method name "CropEntropySpec::it_is_initializable" is not in camel caps format
Loading history...
11
    {
12
        $this->shouldHaveType('Stojg\Crop\CropEntropy');
13
    }
14
15
    function it_can_recieve_imagemagic_object_on_construct() {
1 ignored issue
show
Coding Style introduced by
Method name "CropEntropySpec::it_can_recieve_imagemagic_object_on_construct" is not in camel caps format
Loading history...
16
        $this->beConstructedWith(new \Imagick('spec/Stojg/Crop/fixtures/not-a-image.txt'));
17
        $this->shouldHaveType('Stojg\Crop\CropEntropy');
18
19
    }
20
21
    function it_can_return_an_imagick_object() {
1 ignored issue
show
Coding Style introduced by
Method name "CropEntropySpec::it_can_return_an_imagick_object" is not in camel caps format
Loading history...
22
        $this->getImagick()->shouldHaveType('Imagick');
23
    }
24
}
25