Skip to content

Commit b454758

Browse files
committed
php 5.3 fixes
1 parent ebf7289 commit b454758

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/SqlServerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public function seedDatabase()
2828

2929
$fixture = __DIR__.'/data/blog_'.strtolower(static::$config['dbengine']).'.sql';
3030

31-
$connectionInfo = [
31+
$connectionInfo = array(
3232
'UID' => static::$config['username'],
3333
'PWD' => static::$config['password'],
3434
'Database' => static::$config['database'],
3535
'CharacterSet' => 'UTF-8',
36-
];
36+
);
3737

3838
$conn = sqlsrv_connect(static::$config['hostname'], $connectionInfo);
3939

tests/config.php.dist

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,36 @@ class PHP_CRUD_API_Config
88
*
99
* @var array
1010
*/
11-
public static $config = [
12-
[
11+
public static $config = array(
12+
array(
1313
'dbengine' => 'MySQL', // 'MySQL', 'SQLServer', 'PostgreSQL' or 'SQLite'
1414
'hostname' => '{{test_hostname}}', // 'localhost' for MySQL, '(Local)' for SQLServer, empty for SQLite
1515
'username' => '{{test_username}}', // May be empty on SQLServer or SQLite
1616
'password' => '{{test_password}}', // May be empty on SQLServer or SQLite
1717
'database' => '{{test_database}}', // NB: Use an empty database, data will be LOST!
18-
],
18+
),
1919
/* Uncomment and update for any databases you want to use.
20-
[
20+
array(
2121
'dbengine' => 'PostgreSQL',
2222
'hostname' => '',
2323
'username' => '',
2424
'password' => '',
2525
'database' => '',
26-
],
27-
[
26+
),
27+
array(
2828
'dbengine' => 'SQLite',
2929
'hostname' => '',
3030
'username' => '',
3131
'password' => '',
3232
'database' => '',
33-
],
34-
[
33+
),
34+
array(
3535
'dbengine' => 'SQLServer',
3636
'hostname' => '',
3737
'username' => '',
3838
'password' => '',
3939
'database' => '',
40-
],
40+
),
4141
*/
42-
];
42+
);
4343
}

0 commit comments

Comments
 (0)