|
@@ -0,0 +1,39 @@
|
|
1
|
+<?php
|
|
2
|
+
|
|
3
|
+class PHP_CRUD_API_Config
|
|
4
|
+{
|
|
5
|
+ /**
|
|
6
|
+ * Configure one or more database connections as associative arrays.
|
|
7
|
+ * Tests will be run against any database connection specified here.
|
|
8
|
+ *
|
|
9
|
+ * @var array
|
|
10
|
+ */
|
|
11
|
+ public static $config = array(
|
|
12
|
+ /* MySQL is disabled because v5.7 is required for all tests to pass,
|
|
13
|
+ and Travis only has up to MySQL 5.6 installed by default. This
|
|
14
|
+ will be runnable once we have a test suite that adapts to the
|
|
15
|
+ available MySQL version. See: https://github.com/mevdschee/php-crud-api/issues/194
|
|
16
|
+ array(
|
|
17
|
+ 'dbengine' => 'MySQL',
|
|
18
|
+ 'hostname' => 'localhost',
|
|
19
|
+ 'username' => 'root',
|
|
20
|
+ 'password' => 'travis',
|
|
21
|
+ 'database' => 'testing',
|
|
22
|
+ ),
|
|
23
|
+ */
|
|
24
|
+ array(
|
|
25
|
+ 'dbengine' => 'PostgreSQL',
|
|
26
|
+ 'hostname' => 'localhost',
|
|
27
|
+ 'username' => 'postgres',
|
|
28
|
+ 'password' => '',
|
|
29
|
+ 'database' => 'testing',
|
|
30
|
+ ),
|
|
31
|
+ array(
|
|
32
|
+ 'dbengine' => 'SQLite',
|
|
33
|
+ 'hostname' => '',
|
|
34
|
+ 'username' => '',
|
|
35
|
+ 'password' => '',
|
|
36
|
+ 'database' => 'tests/sqlite.db',
|
|
37
|
+ ),
|
|
38
|
+ );
|
|
39
|
+}
|