/** * Test getConnectedDsn returns a DSN string if it has been set * * @covers Zend\Db\Adapter\Driver\Pdo\Connection::getDsn */ public function testGetDsn() { $dsn = "sqlite::memory:"; $this->connection->setConnectionParameters(array('dsn' => $dsn)); try { $this->connection->connect(); } catch (\Exception $e) { } $responseString = $this->connection->getDsn(); $this->assertEquals($dsn, $responseString); }