Example #1
0
 /**
  * Tests the constructor
  * @dataProvider testParseValidDSNProvider
  */
 public function testParseValidDSN($dsn, $expectedResult)
 {
     //Parse the $dsn and compare to result
     $result = PDO::parseDsn($dsn, array('charset'));
     $this->assertEquals($expectedResult, $result);
 }