public function withoutPassword() { $dsn = new DSN('mysql://*****:*****@localhost/'); $clean = $dsn->withoutPassword(); $this->assertNull($clean->getPassword()); }