Nats\tests\Unit\ConnectionTest::testPublish PHP Метод

testPublish() публичный Метод

Test Publish command.
public testPublish ( ) : void
Результат void
    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();
    }