/** * @dataProvider dsnProvider */ public function testEncode($driver, $host, $port, $user, $pass, $database, $dsn) { $this->assertSame($dsn, DSN::encode($driver, $host, $port, $user, $pass, $database)); }
/** * 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); }