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

IgbinarySerializerTest::setUp()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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