Created
March 16, 2014 02:15
-
-
Save kamermans/9577574 to your computer and use it in GitHub Desktop.
Add empty PHPUnit test files for each PHP file in your project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for FILE in $(find ./src/ -type f -name "*.php" | sed -e 's#/src/#/tests/#' -e 's#\.php$#Test.php#'); do | |
mkdir -p $(dirname $FILE) 2>/dev/null | |
touch "$FILE" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment