mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-07-08 14:24:31 +02:00
35 lines
810 B
PHP
35 lines
810 B
PHP
<?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);
|
|
}
|
|
}
|