@@ -28,10 +28,6 @@ public function test()
2828 TestUtil::getConnectionDriver ();
2929 }
3030
31- /**
32- * @covers \Foolz\SphinxQL\Connection::setParam
33- * @covers \Foolz\SphinxQL\Connection::setParams
34- */
3531 public function testGetParams ()
3632 {
3733 $ this ->assertSame (
@@ -47,6 +43,12 @@ public function testGetParams()
4743 $ this ->connection ->getParams ()
4844 );
4945
46+ $ this ->connection ->setParam ('host ' , 'localhost ' );
47+ $ this ->assertSame (
48+ array ('host ' => '127.0.0.1 ' , 'port ' => 9308 , 'socket ' => null ),
49+ $ this ->connection ->getParams ()
50+ );
51+
5052 // create a unix socket connection with host param
5153 $ this ->connection ->setParam ('host ' , 'unix:/var/run/sphinx.sock ' );
5254 $ this ->assertSame (
@@ -63,10 +65,6 @@ public function testGetParams()
6365 );
6466 }
6567
66- /**
67- * @covers \Foolz\SphinxQL\Connection::setParams
68- * @covers \Foolz\SphinxQL\Connection::getParams
69- */
7068 public function testGetConnectionParams ()
7169 {
7270 // verify that (deprecated) getConnectionParams continues to work
@@ -153,6 +151,24 @@ public function testMultiQuery()
153151 ), $ query ->getNext ()->fetchAllAssoc ());
154152 }
155153
154+ /**
155+ * @expectedException Foolz\SphinxQL\Exception\SphinxQLException
156+ * @expectedExceptionMessage The Queue is empty.
157+ */
158+ public function testEmptyMultiQuery ()
159+ {
160+ $ this ->connection ->connect ();
161+ $ this ->connection ->multiQuery (array ());
162+ }
163+
164+ /**
165+ * @expectedException Foolz\SphinxQL\Exception\DatabaseException
166+ */
167+ public function testMultiQueryThrowsException ()
168+ {
169+ $ this ->connection ->multiQuery (array ('SHOW METAL ' ));
170+ }
171+
156172 /**
157173 * @expectedException Foolz\SphinxQL\Exception\DatabaseException
158174 */
0 commit comments