Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit bcf7b91

Browse files
committed
Added test for string representation of ConnectionOptions
1 parent d20270b commit bcf7b91

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/Unit/ConnectionOptionsTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,15 @@ public function testSettersAndGettersWithoutCredentials()
6565
$this->assertTrue($options->isPedantic());
6666
$this->assertTrue($options->isReconnect());
6767
}
68+
69+
/**
70+
* Test string representation of ConnectionOptions
71+
*
72+
* @return void
73+
*/
74+
public function testStringRepresentation()
75+
{
76+
$options = new ConnectionOptions();
77+
$this->assertEquals("{\"lang\":\"php\",\"version\":\"0.0.5\",\"verbose\":false,\"pedantic\":false}", $options->__toString());
78+
}
6879
}

0 commit comments

Comments
 (0)