1 | <?php |
||
8 | class ImageTest extends TestCase |
||
9 | { |
||
10 | public function testImage() |
||
11 | { |
||
12 | $image = new Image(__DIR__.'/../../../img/icon.png', 'thumbnail'); |
||
13 | $image->setDensity(2); |
||
14 | |||
15 | $this->assertEquals($image->getContext(), 'thumbnail'); |
||
16 | $this->assertEquals($image->getDensity(), 2); |
||
17 | } |
||
18 | |||
19 | public function testImage3x() |
||
20 | { |
||
21 | $image = new Image(__DIR__.'/../../../img/icon.png', 'thumbnail'); |
||
22 | $image->setDensity(3); |
||
23 | |||
24 | $this->assertEquals('thumbnail', $image->getContext()); |
||
25 | $this->assertEquals(3, $image->getDensity()); |
||
26 | } |
||
27 | } |
||
28 |