mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixes useless client helper complexity
This commit is contained in:
@@ -62,4 +62,22 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException BadMethodCallException
|
||||
*/
|
||||
public function testNeedWritableInterfaceDuringMark()
|
||||
{
|
||||
$client = new Client(new \stdClass());
|
||||
$client->mark("OK", []);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException BadMethodCallException
|
||||
*/
|
||||
public function testNeedQueryableInterfaceDuringQuery()
|
||||
{
|
||||
$client = new Client(new \stdClass());
|
||||
$client->query("OK", []);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user