Skip to content

Commit 8b15ec5

Browse files
committed
Fix continuous integration tests for PHP 5.3.
Error message: PHP Fatal error: Call to undefined method CurlTest\CurlTest::assertStringContainsString() in [...]
1 parent 7340e8e commit 8b15ec5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/before_script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ replace_assertStringContainsString() {
7272
sed -i'' -e"s/${find}/${replace}/" "$(pwd)/tests/PHPCurlClass/PHP"*
7373
}
7474

75+
phpunit_v4_8_shim() {
76+
replace_assertStringContainsString
77+
}
78+
7579
phpunit_v6_5_shim() {
7680
remove_expectWarning
7781
replace_assertStringContainsString
@@ -137,6 +141,7 @@ EOF
137141
$superuser /etc/init.d/php5-fpm start
138142
reload_nginx
139143
phpunit_shim
144+
phpunit_v4_8_shim
140145
php_v5_3_shim
141146
elif [[ "${TRAVIS_PHP_VERSION}" == "5.4" ]]; then
142147
install_nginx

0 commit comments

Comments
 (0)