public function testPublish() { $this->c->ping(); $this->c->publish('foo', 'bar'); $count = $this->c->pubsCount(); $this->assertInternalType('int', $count); $this->assertGreaterThan(0, $count); $this->c->close(); }