|
@@ -88,6 +88,13 @@ class redisTest extends PHPUnit_Framework_TestCase
|
|
|
$redis->publish('ch_index',serialize(array('type'=>'special','value' => 0))); // send message to channel 1.
|
|
|
$redis->close();
|
|
|
}
|
|
|
+ public function testPublishSearch()
|
|
|
+ {
|
|
|
+ $redis = new Redis();
|
|
|
+ $redis->pconnect('127.0.0.1',6379);
|
|
|
+ $redis->publish('searcher',serialize(array('type'=>'init','value' => 0)));
|
|
|
+ $redis->close();
|
|
|
+ }
|
|
|
|
|
|
|
|
|
public function testSubscribe()
|