Beispiel #1
0
 /**
  * @dataProvider dsnProvider
  */
 public function testEncode($driver, $host, $port, $user, $pass, $database, $dsn)
 {
     $this->assertSame($dsn, DSN::encode($driver, $host, $port, $user, $pass, $database));
 }
Beispiel #2
0
 /**
  * Returns a DSN string from this connection.
  *
  * @return string the DSN string
  */
 public function getDSN()
 {
     return DSN::encode($this->driver, $this->host, $this->port, $this->user, $this->pass, $this->id);
 }