From 66e6d0a1978222039a339190064e83ff89af7f0b Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Wed, 19 Sep 2012 20:00:25 +0200 Subject: [PATCH] Add an option in the phpunit configuration to clear the cache at bootstrap time --- app/phpunit.xml.dist | 8 +++++++- app/tests.bootstrap.php | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 app/tests.bootstrap.php diff --git a/app/phpunit.xml.dist b/app/phpunit.xml.dist index 1e31086ded..cbdb4cabb4 100644 --- a/app/phpunit.xml.dist +++ b/app/phpunit.xml.dist @@ -11,7 +11,7 @@ processIsolation = "false" stopOnFailure = "false" syntaxCheck = "false" - bootstrap = "bootstrap.php.cache" > + bootstrap = "tests.bootstrap.php" > @@ -26,6 +26,12 @@ --> + + ../src diff --git a/app/tests.bootstrap.php b/app/tests.bootstrap.php new file mode 100644 index 0000000000..dc0d918f5a --- /dev/null +++ b/app/tests.bootstrap.php @@ -0,0 +1,7 @@ +