File tree 2 files changed +4
-17
lines changed
2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 1
1
/composer.lock
2
2
/vendor
3
3
/phpunit.xml
4
+ .phpunit.result.cache
5
+ .idea
Original file line number Diff line number Diff line change 12
12
*/
13
13
14
14
use Cake \Cache \Cache ;
15
+ use Cake \Chronos \Chronos ;
15
16
use Cake \Core \Configure ;
16
17
use Cake \Datasource \ConnectionManager ;
17
18
use Cake \Log \Log ;
105
106
}
106
107
107
108
ConnectionManager::setConfig ('test ' , ['url ' => getenv ('db_dsn ' )]);
108
- ConnectionManager::setConfig ('test_custom_i18n_datasource ' , ['url ' => getenv ('db_dsn ' )]);
109
109
110
110
Configure::write ('Session ' , [
111
111
'defaults ' => 'php '
124
124
]
125
125
]);
126
126
127
- if (class_exists ('Carbon\Carbon ' )) {
128
- Carbon \Carbon::setTestNow (Carbon \Carbon::now ());
129
- } else {
130
- Cake \Chronos \Chronos::setTestNow (Cake \Chronos \Chronos::now ());
131
- Cake \Chronos \MutableDateTime::setTestNow (Cake \Chronos \MutableDateTime::now ());
132
- Cake \Chronos \Date::setTestNow (Cake \Chronos \Date::now ());
133
- Cake \Chronos \MutableDate::setTestNow (Cake \Chronos \MutableDate::now ());
134
- }
135
-
136
- if (class_exists ('PHPUnit_Runner_Version ' )) {
137
- class_alias ('PHPUnit_Framework_TestResult ' , 'PHPUnit\Framework\TestResult ' );
138
- class_alias ('PHPUnit_Framework_Error ' , 'PHPUnit\Framework\Error\Error ' );
139
- class_alias ('PHPUnit_Framework_Error_Warning ' , 'PHPUnit\Framework\Error\Warning ' );
140
- class_alias ('PHPUnit_Framework_Error_Notice ' , 'PHPUnit\Framework\Error\Notice ' );
141
- class_alias ('PHPUnit_Framework_ExpectationFailedException ' , 'PHPUnit\Framework\ExpectationFailedException ' );
142
- }
127
+ Chronos::setTestNow (Chronos::now ());
You can’t perform that action at this time.
0 commit comments