diff --git a/bin/check-syntax.sh b/bin/check-syntax.sh
index 0be70baff93b61899035a3e8fb9b69df0c3c97d3..c633bdefd1ec02adc30b94b0dc893a080d2f1d0b 100755
--- a/bin/check-syntax.sh
+++ b/bin/check-syntax.sh
@@ -4,7 +4,7 @@ PHP='/usr/bin/env php'
 RETURN=0
 
 # check PHP files
-for FILE in `find attributemap bin config-templates lib metadata-templates modules templates www -name "*.php"`; do
+for FILE in `find attributemap bin config-templates lib metadata-templates modules templates tests www -name "*.php"`; do
     $PHP -l $FILE > /dev/null 2>&1
     if [ $? -ne 0 ]; then
         echo "Syntax check failed for ${FILE}"