use Symfony\Component\Translation\Exception\MissingRequiredOptionException;
use Symfony\Component\Translation\Provider\Dsn;
final class DsnTest extends TestCase
{ /**
* @dataProvider constructProvider
*/
public function testConstruct(string
$dsnString, string
$scheme, string
$host, string
$user = null, string
$password = null, int
$port = null, array
$options =
[], string
$path = null
) { $dsn =
new Dsn($dsnString);
$this->
assertSame($dsnString,
$dsn->
getOriginalDsn());
$this->
assertSame($scheme,
$dsn->
getScheme());
$this->
assertSame($host,
$dsn->
getHost());
$this->
assertSame($user,
$dsn->
getUser());
$this->
assertSame($password,
$dsn->
getPassword());
$this->
assertSame($port,
$dsn->
getPort());
$this->
assertSame($path,
$dsn->
getPath());
$this->
assertSame($options,
$dsn->
getOptions());
} public static function constructProvider(): iterable
{