Skip to content

Commit 5d8bf00

Browse files
test for !fatal response added to ClientTest
1 parent 83408c0 commit 5d8bf00

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/ClientTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,17 @@ public function testWriteReadArray()
157157
$this->assertEquals('!trap', $readTrap[0]);
158158
}
159159

160+
public function testFatal()
161+
{
162+
$config = new Config();
163+
$config->set('user', 'admin')->set('pass', 'admin')->set('host', '127.0.0.1');
164+
$obj = new Client($config);
165+
166+
$readTrap = $obj->wr('/quit');
167+
$this->assertCount(2, $readTrap);
168+
$this->assertEquals('!fatal', $readTrap[0]);
169+
}
170+
160171
public function testWriteEx()
161172
{
162173
$this->expectException(QueryException::class);

0 commit comments

Comments
 (0)