|
1 | 1 | phpunit_shim() {
|
2 | 2 | # -class CurlTest extends \PHPUnit\Framework\TestCase
|
3 |
| - # +class CurlTest extends PHPUnit_Framework_TestCase |
| 3 | + # +class CurlTest extends \PHPUnit_Framework_TestCase |
4 | 4 | find='class CurlTest extends \\PHPUnit\\Framework\\TestCase'
|
5 |
| - replace='class CurlTest extends PHPUnit_Framework_TestCase' |
6 |
| - sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"* |
7 |
| - |
8 |
| - # -\PHPUnit\Framework\Assert |
9 |
| - # +PHPUnit_Framework_Assert |
10 |
| - find='\\PHPUnit\\Framework\\Assert' |
11 |
| - replace='PHPUnit_Framework_Assert' |
| 5 | + replace='class CurlTest extends \\PHPUnit_Framework_TestCase' |
12 | 6 | sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"*
|
13 | 7 |
|
14 | 8 | # -\PHPUnit\Framework\Assert
|
15 | 9 | # +\PHPUnit_Framework_Assert
|
16 | 10 | find='\\PHPUnit\\Framework\\Assert'
|
17 | 11 | replace='\\PHPUnit_Framework_Assert'
|
| 12 | + sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"* |
18 | 13 | sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/Helper.php"
|
19 | 14 |
|
20 | 15 | # -\PHPUnit\Framework\Error\Warning
|
21 |
| - # +PHPUnit_Framework_Error_Warning |
| 16 | + # +\PHPUnit_Framework_Error_Warning |
22 | 17 | find='\\PHPUnit\\Framework\\Error\\Warning'
|
23 |
| - replace='PHPUnit_Framework_Error_Warning' |
| 18 | + replace='\\PHPUnit_Framework_Error_Warning' |
24 | 19 | sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"*
|
25 | 20 | }
|
26 | 21 |
|
|
0 commit comments