__toString() public method

Serialize the DSN into a string
public __toString ( ) : string
return string
Example #1
0
 public function testBuildingADsnWithQueryStrings()
 {
     $raw = "mysqli://*****:*****@hostname:3306?myparam=llamas&another=blargh";
     $dsn = new Dsn($raw);
     $this->assertEquals($dsn->params['another'], 'blargh');
     $this->assertEquals($dsn->params['myparam'], 'llamas');
     $this->assertEquals($dsn->__toString(), $raw);
 }