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

ImageTest::testCreateInstance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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