mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Add workaround to ensure PHPUnit installed by setup-php is used along with PHPUnit-Polyfills
This commit is contained in:
parent
81a06ff6ed
commit
2f2a90e464
@ -18,6 +18,10 @@ add_tools_helper() {
|
|||||||
add_extension fileinfo extension >/dev/null 2>&1
|
add_extension fileinfo extension >/dev/null 2>&1
|
||||||
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/phpdocumentor 2>/dev/null || true
|
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/phpdocumentor 2>/dev/null || true
|
||||||
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/phpdoc
|
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/phpdoc
|
||||||
|
elif [[ "$tool" =~ phpunit(-polyfills)?$ ]]; then
|
||||||
|
if [ -e "${tool_path_dir:?}"/phpunit ]; then
|
||||||
|
sudo cp "${tool_path_dir:?}"/phpunit "${composer_bin:?}"
|
||||||
|
fi
|
||||||
elif [[ "$tool" =~ (symfony|vapor|wp)-cli ]]; then
|
elif [[ "$tool" =~ (symfony|vapor|wp)-cli ]]; then
|
||||||
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/"${tool%-*}"
|
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/"${tool%-*}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user