/**
* @dataProvider provideOracleConnectStrings
+ * @covers OracleInstaller::checkConnectStringFormat
*/
- function testCheckConnectStringFormat( $expected, $connectString, $msg = '' ) {
+ public function testCheckConnectStringFormat( $expected, $connectString, $msg = '' ) {
$validity = $expected ? 'should be valid' : 'should NOT be valid';
$msg = "'$connectString' ($msg) $validity.";
$this->assertEquals( $expected,
array( true, 'host:1521/service:shared', 'Host, port, service and shared server type' ),
array( true, 'host:1521/service:dedicated', 'Host, port, service and dedicated server type' ),
array( true, 'host:1521/service:pooled', 'Host, port, service and pooled server type' ),
- array( true, 'host:1521/service:shared/instance1', 'Host, port, service, server type and instance' ),
+ array(
+ true,
+ 'host:1521/service:shared/instance1',
+ 'Host, port, service, server type and instance'
+ ),
array( true, 'host:1521//instance1', 'Host, port and instance' ),
);
}