Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 68855a209a8a9dcf4dbc23d2dd777f503f217da5 1 parent 186d95c
@chillu chillu authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.