validate_examples.sh 148 B

12345678
  1. #!/bin/bash
  2. for i in examples/*.php; do
  3. php $i
  4. if [ $? != 0 ]; then
  5. echo "Error running example code";
  6. exit -1
  7. fi;
  8. done