Browse Source

php 5.3 fixes

Maurits van der Schee 8 years ago
parent
commit
b454758c7c
2 changed files with 12 additions and 12 deletions
  1. 2
    2
      tests/SqlServerTest.php
  2. 10
    10
      tests/config.php.dist

+ 2
- 2
tests/SqlServerTest.php View File

@@ -28,12 +28,12 @@ class SqlServerTest extends PHP_CRUD_API_Test
28 28
 
29 29
         $fixture = __DIR__.'/data/blog_'.strtolower(static::$config['dbengine']).'.sql';
30 30
 
31
-        $connectionInfo = [
31
+        $connectionInfo = array(
32 32
             'UID' => static::$config['username'],
33 33
             'PWD' => static::$config['password'],
34 34
             'Database' => static::$config['database'],
35 35
             'CharacterSet' => 'UTF-8',
36
-        ];
36
+        );
37 37
 
38 38
         $conn = sqlsrv_connect(static::$config['hostname'], $connectionInfo);
39 39
 

+ 10
- 10
tests/config.php.dist View File

@@ -8,36 +8,36 @@ class PHP_CRUD_API_Config
8 8
      *
9 9
      * @var array
10 10
      */
11
-    public static $config = [
12
-        [
11
+    public static $config = array(
12
+        array(
13 13
             'dbengine' => 'MySQL',              // 'MySQL', 'SQLServer', 'PostgreSQL' or 'SQLite'
14 14
             'hostname' => '{{test_hostname}}',  // 'localhost' for MySQL, '(Local)' for SQLServer, empty for SQLite
15 15
             'username' => '{{test_username}}',  // May be empty on SQLServer or SQLite
16 16
             'password' => '{{test_password}}',  // May be empty on SQLServer or SQLite
17 17
             'database' => '{{test_database}}',  // NB: Use an empty database, data will be LOST!
18
-        ],
18
+        ),
19 19
         /* Uncomment and update for any databases you want to use.
20
-        [
20
+        array(
21 21
             'dbengine' => 'PostgreSQL',
22 22
             'hostname' => '',
23 23
             'username' => '',
24 24
             'password' => '',
25 25
             'database' => '',
26
-        ],
27
-        [
26
+        ),
27
+        array(
28 28
             'dbengine' => 'SQLite',
29 29
             'hostname' => '',
30 30
             'username' => '',
31 31
             'password' => '',
32 32
             'database' => '',
33
-        ],
34
-        [
33
+        ),
34
+        array(
35 35
             'dbengine' => 'SQLServer',
36 36
             'hostname' => '',
37 37
             'username' => '',
38 38
             'password' => '',
39 39
             'database' => '',
40
-        ],
40
+        ),
41 41
         */
42
-    ];
42
+    );
43 43
 }

Loading…
Cancel
Save