#!/usr/bin/env bash

function run_tests_for_symfony_version() {
    version=$1

    rm -fr test-app/app/cache/*

    echo 'Testing wtih Symfony version' $version
    SYMFONY_VERSION="$version" "test-app/vendor-symfony-$version/phpunit/phpunit/phpunit" -c phpunit.xml.dist
}

run_tests_for_symfony_version 2.5
run_tests_for_symfony_version 2.8
run_tests_for_symfony_version 3.0
run_tests_for_symfony_version 3.1
