public function testBuildingADsnWithoutDb() { $dsn = new Dsn("mysqli://user:pass@hostname:3306"); $this->assertFalse(isset($dsn->database)); $this->assertEquals($dsn->__toString(), 'mysqli://user:pass@hostname:3306'); }