Completed
Pull Request — master (#70)
by
unknown
03:07 queued 01:01
created

ImageTest::testImage3x()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Passbook\Tests\Pass;
4
5
use Passbook\Pass\Image;
6
7
class ImageTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testImage()
10
    {
11
        $image = new Image(__DIR__.'/../../../img/icon.png', 'thumbnail');
12
        $image->setDensity(2);
13
14
        $this->assertEquals($image->getContext(), 'thumbnail');
15
        $this->assertEquals($image->getDensity(), 2);
16
    }
17
18
    public function testImage3x()
19
    {
20
        $image = new Image(__DIR__.'/../../../img/icon.png', 'thumbnail');
21
        $image->setDensity(3);
22
23
        $this->assertEquals($image->getContext(), 'thumbnail');
24
        $this->assertEquals($image->getDensity(), 3);
25
    }
26
}
27