Skip to content
This repository
Browse code

Guard against double inclusion of phpunit

While a hack, it fixes problems with our build infrastructure,
specifically i18nTextCollectorTask complaining about
double class definition.
  • Loading branch information...
commit 68855a209a8a9dcf4dbc23d2dd777f503f217da5 1 parent 186d95c
Ingo Schommer authored August 09, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  dev/SapphireTestReporter.php
4  dev/SapphireTestReporter.php
... ...
@@ -1,6 +1,6 @@
1 1
 <?php
2  
-require_once 'PHPUnit/Framework/TestResult.php';
3  
-require_once 'PHPUnit/Framework/TestListener.php';
  2
+if(!class_exists('PHPUnit_Framework_TestResult', false)) require_once 'PHPUnit/Framework/TestResult.php';
  3
+if(!class_exists('PHPUnit_Framework_TestListener', false)) require_once 'PHPUnit/Framework/TestListener.php';
4 4
 
5 5
 /**#@+
6 6
  * @var int

0 notes on commit 68855a2

Please sign in to comment.
Something went wrong with that request. Please try again.