Skip to content

Commit ddac122

Browse files
committed
Fix php shim namespace
1 parent 2264362 commit ddac122

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tests/before_script.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
phpunit_shim() {
22
# -class CurlTest extends \PHPUnit\Framework\TestCase
3-
# +class CurlTest extends PHPUnit_Framework_TestCase
3+
# +class CurlTest extends \PHPUnit_Framework_TestCase
44
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'
126
sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"*
137

148
# -\PHPUnit\Framework\Assert
159
# +\PHPUnit_Framework_Assert
1610
find='\\PHPUnit\\Framework\\Assert'
1711
replace='\\PHPUnit_Framework_Assert'
12+
sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"*
1813
sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/Helper.php"
1914

2015
# -\PHPUnit\Framework\Error\Warning
21-
# +PHPUnit_Framework_Error_Warning
16+
# +\PHPUnit_Framework_Error_Warning
2217
find='\\PHPUnit\\Framework\\Error\\Warning'
23-
replace='PHPUnit_Framework_Error_Warning'
18+
replace='\\PHPUnit_Framework_Error_Warning'
2419
sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"*
2520
}
2621

0 commit comments

Comments
 (0)