MediaWiki  1.23.2
OracleInstallerTest.php
Go to the documentation of this file.
1 <?php
2 
11 
16  public function testCheckConnectStringFormat( $expected, $connectString, $msg = '' ) {
17  $validity = $expected ? 'should be valid' : 'should NOT be valid';
18  $msg = "'$connectString' ($msg) $validity.";
19  $this->assertEquals( $expected,
21  $msg
22  );
23  }
24 
29  // expected result, connectString[, message]
30  return array(
31  array( true, 'simple_01', 'Simple TNS name' ),
32  array( true, 'simple_01.world', 'TNS name with domain' ),
33  array( true, 'simple_01.domain.net', 'TNS name with domain' ),
34  array( true, 'host123', 'Host only' ),
35  array( true, 'host123.domain.net', 'FQDN only' ),
36  array( true, '//host123.domain.net', 'FQDN URL only' ),
37  array( true, '123.223.213.132', 'Host IP only' ),
38  array( true, 'host:1521', 'Host and port' ),
39  array( true, 'host:1521/service', 'Host, port and service' ),
40  array( true, 'host:1521/service:shared', 'Host, port, service and shared server type' ),
41  array( true, 'host:1521/service:dedicated', 'Host, port, service and dedicated server type' ),
42  array( true, 'host:1521/service:pooled', 'Host, port, service and pooled server type' ),
43  array( true, 'host:1521/service:shared/instance1', 'Host, port, service, server type and instance' ),
44  array( true, 'host:1521//instance1', 'Host, port and instance' ),
45  );
46  }
47 
48 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
OracleInstaller\checkConnectStringFormat
static checkConnectStringFormat( $connect_string)
Function checks the format of Oracle connect string The actual validity of the string is checked by a...
Definition: OracleInstaller.php:336
OracleInstallerTest\testCheckConnectStringFormat
testCheckConnectStringFormat( $expected, $connectString, $msg='')
@dataProvider provideOracleConnectStrings @covers OracleInstaller::checkConnectStringFormat
Definition: OracleInstallerTest.php:16
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
OracleInstallerTest\provideOracleConnectStrings
provideOracleConnectStrings()
Provider to test OracleInstaller::checkConnectStringFormat()
Definition: OracleInstallerTest.php:28
OracleInstallerTest
Tests for OracleInstaller.
Definition: OracleInstallerTest.php:10