Completed
Push — master ( ff8f52...ed8581 )
by
unknown
12:31 queued 10s
created

ImageSizeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testExtract() 0 9 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
namespace eZ\Publish\Core\IO\Tests\MetadataHandler;
8
9
use eZ\Publish\Core\IO\MetadataHandler\ImageSize as ImageSizeMetadataHandler;
10
use PHPUnit\Framework\TestCase;
11
12
/**
13
 * @group fieldType
14
 * @group ezimage
15
 */
16
class ImageSizeTest extends TestCase
17
{
18
    public function testExtract()
19
    {
20
        $metadataHandler = new ImageSizeMetadataHandler();
0 ignored issues
show
Deprecated Code introduced by
The class eZ\Publish\Core\IO\MetadataHandler\ImageSize has been deprecated with message: Not in use anymore by the kernel.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
21
        $file = 'eZ/Publish/Core/Repository/Tests/Service/Integration/ezplogo.png';
22
        self::assertEquals(
23
            ['width' => 189, 'height' => 200, 'mime' => 'image/png'],
24
            $metadataHandler->extract($file)
25
        );
26
    }
27
}
28