#!/bin/bash

php admin/tool/phpunit/cli/init.php
printf "\n"

for j in {1..100}; do
    printf "Iteration $j\n"
    vendor/bin/phpunit mod_data_external_testcase mod/data/tests/externallib_test.php
    result=$?
    if [ "$result" != "0" ]
        then
            printf "FAILURE ENCOUNTERED!\n"
            break
    fi
    printf "\n"
done
