mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-28 11:09:26 +00:00
Clean up
This commit is contained in:
+26
-26
@@ -1,3 +1,29 @@
|
||||
remove_expectWarning() {
|
||||
# Fix "Call to undefined method CurlTest\CurlTest::expectWarning()".
|
||||
sed -i'' -e"/->expectWarning(/d" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
replace_assertStringContainsString() {
|
||||
# -->assertStringContainsString(
|
||||
# +->assertContains(
|
||||
find='->assertStringContainsString('
|
||||
replace='->assertContains('
|
||||
sed -i'' -e"s/${find}/${replace}/" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
phpunit_v6_5_shim() {
|
||||
remove_expectWarning
|
||||
replace_assertStringContainsString
|
||||
}
|
||||
|
||||
phpunit_v7_5_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
phpunit_v8_1_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
set -x
|
||||
|
||||
composer self-update
|
||||
@@ -26,32 +52,6 @@ for i in $(seq 0 $(("${server_count}" - 1))); do
|
||||
php -S "127.0.0.1:${port}" -t PHPCurlClass/ &
|
||||
done
|
||||
|
||||
remove_expectWarning() {
|
||||
# Fix "Call to undefined method CurlTest\CurlTest::expectWarning()".
|
||||
sed -i'' -e"/->expectWarning(/d" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
replace_assertStringContainsString() {
|
||||
# -->assertStringContainsString(
|
||||
# +->assertContains(
|
||||
find='->assertStringContainsString('
|
||||
replace='->assertContains('
|
||||
sed -i'' -e"s/${find}/${replace}/" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
phpunit_v6_5_shim() {
|
||||
remove_expectWarning
|
||||
replace_assertStringContainsString
|
||||
}
|
||||
|
||||
phpunit_v7_5_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
phpunit_v8_1_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
errors=()
|
||||
|
||||
source "check_syntax.sh"
|
||||
|
||||
+26
-26
@@ -1,3 +1,29 @@
|
||||
remove_expectWarning() {
|
||||
# Fix "Call to undefined method CurlTest\CurlTest::expectWarning()".
|
||||
sed -i'' -e"/->expectWarning(/d" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
replace_assertStringContainsString() {
|
||||
# -->assertStringContainsString(
|
||||
# +->assertContains(
|
||||
find='->assertStringContainsString('
|
||||
replace='->assertContains('
|
||||
sed -i'' -e"s/${find}/${replace}/" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
phpunit_v6_5_shim() {
|
||||
remove_expectWarning
|
||||
replace_assertStringContainsString
|
||||
}
|
||||
|
||||
phpunit_v7_5_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
phpunit_v8_1_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
set -x
|
||||
|
||||
# Use composer's phpunit and phpcs by adding composer bin directory to the path environment variable.
|
||||
@@ -25,32 +51,6 @@ for i in $(seq 0 $(("${server_count}" - 1))); do
|
||||
pids["${i}"]="${!}"
|
||||
done
|
||||
|
||||
remove_expectWarning() {
|
||||
# Fix "Call to undefined method CurlTest\CurlTest::expectWarning()".
|
||||
sed -i'' -e"/->expectWarning(/d" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
replace_assertStringContainsString() {
|
||||
# -->assertStringContainsString(
|
||||
# +->assertContains(
|
||||
find='->assertStringContainsString('
|
||||
replace='->assertContains('
|
||||
sed -i'' -e"s/${find}/${replace}/" "./PHPCurlClass/PHP"*
|
||||
}
|
||||
|
||||
phpunit_v6_5_shim() {
|
||||
remove_expectWarning
|
||||
replace_assertStringContainsString
|
||||
}
|
||||
|
||||
phpunit_v7_5_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
phpunit_v8_1_shim() {
|
||||
remove_expectWarning
|
||||
}
|
||||
|
||||
errors=()
|
||||
|
||||
source "check_syntax.sh"
|
||||
|
||||
Reference in New Issue
Block a user