Passed
Pull Request — master (#30)
by Alexander
02:06
created

IgbinarySerializerTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createSerializer() 0 3 1
A setUp() 0 7 2
1
<?php
2
namespace Yiisoft\CacheOld\Tests\Serializer;
3
4
use Yiisoft\CacheOld\Serializer\IgbinarySerializer;
5
use Yiisoft\CacheOld\Serializer\SerializerInterface;
6
7
/**
8
 * @group serialize
9
 */
10
class IgbinarySerializerTest extends SerializerTest
11
{
12
    protected function setUp(): void
13
    {
14
        if (!function_exists('igbinary_serialize')) {
15
            $this->markTestSkipped('igbinary extension is required.');
16
        }
17
18
        parent::setUp();
19
    }
20
21
    protected function createSerializer(): SerializerInterface
22
    {
23
        return new IgbinarySerializer();
24
    }
25
}
26