Skip to content

Commit

Permalink
feat: PHPUnit interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Dec 14, 2023
1 parent 075ab84 commit 8c9d906
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ install:
@sudo ln -sf $(shell pwd)/php /usr/local/bin/php
@sudo ln -sf $(shell pwd)/phpctl /usr/local/bin/pctl
@sudo ln -sf $(shell pwd)/phpctl /usr/local/bin/phpctl
@sudo ln -sf $(shell pwd)/phpunit /usr/local/bin/phpunit
2 changes: 2 additions & 0 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ symlink() {
sudo ln -sf "${INSTALL_DIR}/php" /usr/local/bin/php
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/pctl
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/phpctl
sudo ln -sf "${INSTALL_DIR}/phpunit" /usr/local/bin/phpunit
}

echo "\033[0;33mInstalling phpctl at \033[0m$INSTALL_DIR"
Expand All @@ -24,5 +25,6 @@ else
echo " sudo ln -sf ${INSTALL_DIR}/php /usr/local/bin/php"
echo " sudo ln -sf ${INSTALL_DIR}/phpctl /usr/local/bin/pctl"
echo " sudo ln -sf ${INSTALL_DIR}/phpctl /usr/local/bin/phpctl"
echo " sudo ln -sf ${INSTALL_DIR}/phpunit /usr/local/bin/phpunit"
echo ""
fi
2 changes: 2 additions & 0 deletions phpunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
phpctl phpunit $@

0 comments on commit 8c9d906

Please sign in to comment.