mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-07-08 14:24:31 +02:00
20 lines
440 B
PHP
20 lines
440 B
PHP
<?php
|
|
|
|
use Clue\Redis\Protocol\Model\StatusReply;
|
|
|
|
class StatusReplyTest extends AbstractModelTest
|
|
{
|
|
protected function createModel($value)
|
|
{
|
|
return new StatusReply($value);
|
|
}
|
|
|
|
public function testStatusOk()
|
|
{
|
|
$model = $this->createModel('OK');
|
|
|
|
$this->assertEquals('OK', $model->getValueNative());
|
|
$this->assertEquals("+OK\r\n", $model->getMessageSerialized($this->serializer));
|
|
}
|
|
}
|