Passed
Pull Request — master (#268)
by Albin
02:26
created

ImageTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCreateInstance() 0 5 1
A testAvailableOptions() 0 6 1
1
<?php
2
3
namespace Knp\Snappy;
4
5
class ImageTest extends \PHPUnit_Framework_TestCase
6
{
7
    public function testCreateInstance()
8
    {
9
        $testObject = new \Knp\Snappy\Image();
10
        $this->assertInstanceOf('\Knp\Snappy\Image', $testObject);
11
    }
12
13
    public function testAvailableOptions()
14
    {
15
        $testObject = new \Knp\Snappy\Image();
16
        $testObject->setOption('use-xserver', true);
17
        $testObject->setOption('enable-smart-width', true);
18
    }
19
}
20