Unverified Commit e32b789e authored by Nathan Tolbert's avatar Nathan Tolbert Committed by Luís Cobucci

remove test that looks for mandatory mysqli parameters (Which should not be mandatory)

parent 8f954248
......@@ -50,34 +50,5 @@ class MysqliConnectionTest extends DbalTestCase
restore_error_handler();
}
/**
* @dataProvider secureMissingParamsProvider
*/
public function testThrowsExceptionWhenMissingMandatorySecureParams(array $secureParams)
{
$this->expectException(MysqliException::class);
$msg = '"ssl_key" and "ssl_cert" parameters are mandatory when using secure connection parameters.';
$this->expectExceptionMessage($msg);
new MysqliConnection($secureParams, 'xxx', 'xxx');
}
public function secureMissingParamsProvider()
{
return [
[
['ssl_cert' => 'cert.pem']
],
[
['ssl_key' => 'key.pem']
],
[
['ssl_key' => 'key.pem', 'ssl_ca' => 'ca.pem', 'ssl_capath' => 'xxx', 'ssl_cipher' => 'xxx']
],
[
['ssl_ca' => 'ca.pem', 'ssl_capath' => 'xxx', 'ssl_cipher' => 'xxx']
]
];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment