Skip to content

Commit

Permalink
Add workaround to ensure PHPUnit installed by setup-php is used along…
Browse files Browse the repository at this point in the history
… with PHPUnit-Polyfills
  • Loading branch information
shivammathur committed Nov 16, 2021
1 parent 81a06ff commit 2f2a90e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripts/tools/add_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ add_tools_helper() {
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:?}"/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
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/"${tool%-*}"
fi
Expand Down

0 comments on commit 2f2a90e

Please sign in to comment.