Skip to content

Commit

Permalink
Added test for string representation of ConnectionOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
repejota committed Jun 15, 2016
1 parent d20270b commit bcf7b91
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Unit/ConnectionOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,15 @@ public function testSettersAndGettersWithoutCredentials()
$this->assertTrue($options->isPedantic());
$this->assertTrue($options->isReconnect());
}

/**
* Test string representation of ConnectionOptions
*
* @return void
*/
public function testStringRepresentation()
{
$options = new ConnectionOptions();
$this->assertEquals("{\"lang\":\"php\",\"version\":\"0.0.5\",\"verbose\":false,\"pedantic\":false}", $options->__toString());
}
}

0 comments on commit bcf7b91

Please sign in to comment.