-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
38 lines (32 loc) · 1.12 KB
/
Copy pathbootstrap.php
File metadata and controls
38 lines (32 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
// backward compatibility
$classMap = array(
// PHP 5.3 doesn't like leading backslash
'PHPUnit_Framework_AssertionFailedError' => 'PHPUnit\Framework\AssertionFailedError',
'PHPUnit_Framework_Constraint_IsType' => 'PHPUnit\Framework\Constraint\IsType',
'PHPUnit_Framework_Exception' => 'PHPUnit\Framework\Exception',
'PHPUnit_Framework_TestCase' => 'PHPUnit\Framework\TestCase',
'PHPUnit_Framework_TestSuite' => 'PHPUnit\Framework\TestSuite',
);
foreach ($classMap as $old => $new) {
if (\class_exists($new) === false) {
\class_alias($old, $new);
}
}
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/HttpMessage/bootstrapFunctionReplace.php';
\define('TEST_DIR', __DIR__);
\ini_set('xdebug.var_display_max_depth', 3);
\ini_set('xdebug.var_display_max_data', '-1');
$modifyTests = new \bdk\DevUtil\ModifyTests();
$modifyTests->modify(__DIR__);
\register_shutdown_function(static function () {
$files = array(
__DIR__ . '/../tmp/logo_clone.png',
);
foreach ($files as $file) {
if (\is_file($file)) {
\unlink($file);
}
}
});