public function testBuildingADsn() { $dsn = new Dsn("mysqli://user:pass@hostname:3306/mydb"); $dsn->host = 'anotherhost'; $dsn->port = 3307; $this->assertEquals($dsn->__toString(), 'mysqli://user:pass@anotherhost:3307/mydb'); }