__toString() 공개 메소드

Serialize the DSN into a string
public __toString ( ) : string
리턴 string
예제 #1
0
파일: DsnTest.php 프로젝트: lox/pheasant
 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);
 }