Nats\Test\ConnectionOptionsTest::testStringRepresentationWithCredentials PHP Метод

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

Test string representation of ConnectionOptions with credentials.
public testStringRepresentationWithCredentials ( ) : void
Результат void
    public function testStringRepresentationWithCredentials()
    {
        $options = new ConnectionOptions();
        $options->setUser("username");
        $options->setPass("password");
        $this->assertEquals("{\"lang\":\"php\",\"version\":\"0.8.0\",\"verbose\":false,\"pedantic\":false,\"user\":\"username\",\"pass\":\"password\"}", $options->__toString());
    }