Completed
Pull Request — master (#11)
by Laurens
02:39 queued 51s
created

ImageTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\Tests\Unit\Api;
6
7
use LauLamanApps\IzettleApi\API\Image;
8
use PHPUnit\Framework\TestCase;
9
10
/**
11
 * @small
12
 */
13
final class ImageTest extends TestCase
14
{
15
    /**
16
     * @test
17
     */
18
    public function image()
19
    {
20
        $filename = 'image.jpg';
21
22
        $image = new Image($filename);
23
24
        self::assertSame(Image::BASE_URL . 'o/' . $filename, $image->getLargeImageUrl());
25
        self::assertSame(Image::BASE_URL . 'L/' . $filename, $image->getSmallImageUrl());
26
    }
27
}
28