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

IgbinarySerializerTest::createSerializer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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