|
19 | 19 | use xPDO\xPDO;
|
20 | 20 |
|
21 | 21 | /* define some properties */
|
22 |
| -$properties['runtime'] = strftime("%Y%m%dT%H%M%S"); |
| 22 | +$properties['runtime'] = date('Ymd\THis'); |
23 | 23 | $properties['config_key'] = 'test';
|
24 | 24 |
|
25 | 25 | /* driver-specific connection properties */
|
26 | 26 | /* mysql */
|
27 |
| -$properties['mysql_string_dsn_test']= 'mysql:host=127.0.0.1;dbname=revo_test;charset=utf8'; |
28 |
| -$properties['mysql_string_dsn_nodb']= 'mysql:host=127.0.0.1;charset=utf8'; |
29 |
| -$properties['mysql_string_dsn_error']= 'mysql:host= nonesuchhost;dbname=nonesuchdb'; |
30 |
| -$properties['mysql_string_username']= ''; |
31 |
| -$properties['mysql_string_password']= ''; |
32 |
| -$properties['mysql_array_options']= [ |
| 27 | +$properties['mysql_string_dsn_test'] = 'mysql:host=127.0.0.1;dbname=revo_test;charset=utf8'; |
| 28 | +$properties['mysql_string_dsn_nodb'] = 'mysql:host=127.0.0.1;charset=utf8'; |
| 29 | +$properties['mysql_string_dsn_error'] = 'mysql:host= nonesuchhost;dbname=nonesuchdb'; |
| 30 | +$properties['mysql_string_username'] = ''; |
| 31 | +$properties['mysql_string_password'] = ''; |
| 32 | +$properties['mysql_array_options'] = [ |
33 | 33 | xPDO::OPT_HYDRATE_FIELDS => true,
|
34 | 34 | xPDO::OPT_HYDRATE_RELATED_OBJECTS => true,
|
35 | 35 | xPDO::OPT_HYDRATE_ADHOC_FIELDS => true,
|
36 | 36 | ];
|
37 |
| -$properties['mysql_array_driverOptions']= [\PDO::ATTR_ERRMODE => \PDO::ERRMODE_SILENT]; |
| 37 | +$properties['mysql_array_driverOptions'] = [\PDO::ATTR_ERRMODE => \PDO::ERRMODE_SILENT]; |
38 | 38 |
|
39 | 39 | /* PHPUnit test config */
|
40 |
| -$properties['xpdo_driver']= 'mysql'; |
41 |
| -$properties['logTarget']= [ |
| 40 | +$properties['xpdo_driver'] = 'mysql'; |
| 41 | +$properties['logTarget'] = [ |
42 | 42 | 'target' => 'file',
|
43 | 43 | 'options' => [
|
44 | 44 | 'filename' => "unit_test_{$properties['runtime']}.log",
|
45 | 45 | 'filepath' => dirname(__FILE__) . '/'
|
46 | 46 | ]
|
47 | 47 | ];
|
48 |
| -$properties['logLevel']= xPDO::LOG_LEVEL_INFO; |
| 48 | +$properties['logLevel'] = xPDO::LOG_LEVEL_INFO; |
49 | 49 | $properties['context'] = 'web';
|
50 | 50 | $properties['debug'] = false;
|
0 commit comments