blob: b66922312c7493a9539b2c8e36d1e37c8edbbf2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
use Clue\Redis\Protocol\Factory;
class FactoryTest extends TestCase
{
private $factory;
public function setUp()
{
$this->factory = new Factory();
}
public function testCreateResponseParser()
{
$parser = $this->factory->createResponseParser();
$this->assertInstanceOf('Clue\Redis\Protocol\Parser\ParserInterface', $parser);
}
public function testCreateRequestParser()
{
$parser = $this->factory->createRequestParser();
$this->assertInstanceOf('Clue\Redis\Protocol\Parser\ParserInterface', $parser);
}
public function testCreateSerializer()
{
$serializer = $this->factory->createSerializer();
$this->assertInstanceOf('Clue\Redis\Protocol\Serializer\SerializerInterface', $serializer);
}
}
|