Skip to content
Browse files

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...
1 parent 186d95c commit 68855a209a8a9dcf4dbc23d2dd777f503f217da5 @chillu chillu committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 dev/SapphireTestReporter.php
View
4 dev/SapphireTestReporter.php
@@ -1,6 +1,6 @@
<?php
-require_once 'PHPUnit/Framework/TestResult.php';
-require_once 'PHPUnit/Framework/TestListener.php';
+if(!class_exists('PHPUnit_Framework_TestResult', false)) require_once 'PHPUnit/Framework/TestResult.php';
+if(!class_exists('PHPUnit_Framework_TestListener', false)) require_once 'PHPUnit/Framework/TestListener.php';
/**#@+
* @var int

0 comments on commit 68855a2

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