mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-07-08 22:34:34 +02:00
20 lines
455 B
PHP
20 lines
455 B
PHP
<?php
|
|
|
|
use Clue\Redis\Protocol\Model\ErrorReply;
|
|
|
|
class ErrorReplyTest extends AbstractModelTest
|
|
{
|
|
protected function createModel($value)
|
|
{
|
|
return new ErrorReply($value);
|
|
}
|
|
|
|
public function testError()
|
|
{
|
|
$model = $this->createModel('ERR error');
|
|
|
|
$this->assertEquals('ERR error', $model->getValueNative());
|
|
$this->assertEquals("-ERR error\r\n", $model->getMessageSerialized($this->serializer));
|
|
}
|
|
}
|