From d51b00b508f9c9b5c2d0de3a046732e907ff4510 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 12 Jul 2013 14:02:43 +0200 Subject: [PATCH] Update Livestatus tests --- .../Protocol/Livestatus/ConnectionTest.php | 17 ++++++++++++++--- .../Icinga/Protocol/Livestatus/QueryTest.php | 13 +++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/test/php/library/Icinga/Protocol/Livestatus/ConnectionTest.php b/test/php/library/Icinga/Protocol/Livestatus/ConnectionTest.php index 7d2660fd6..58ecbef9c 100755 --- a/test/php/library/Icinga/Protocol/Livestatus/ConnectionTest.php +++ b/test/php/library/Icinga/Protocol/Livestatus/ConnectionTest.php @@ -1,13 +1,21 @@ markTestIncomplete('testSelect is not implemented yet'); + $socket = tempnam(sys_get_temp_dir(), 'IcingaTest'); + $connection = new Connection($socket); + $this->assertTrue($connection->select() instanceof Query); + unlink($socket); } /** diff --git a/test/php/library/Icinga/Protocol/Livestatus/QueryTest.php b/test/php/library/Icinga/Protocol/Livestatus/QueryTest.php index 2df606b2a..020396ebc 100755 --- a/test/php/library/Icinga/Protocol/Livestatus/QueryTest.php +++ b/test/php/library/Icinga/Protocol/Livestatus/QueryTest.php @@ -1,13 +1,22 @@