Skip to content

Commit

Permalink
MDL-47564 Availability: incorrect use of defined('PHP_UNIT')
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Oct 7, 2014
1 parent 6597413 commit c0d9224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion availability/classes/tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function __construct($structure, $lax = false, $root = true) {

// For unit tests, also allow the mock plugin type (even though it
// isn't configured in the code as a proper plugin).
if (defined('PHPUNIT_TEST')) {
if (PHPUNIT_TEST) {
$enabled['mock'] = true;
}

Expand Down

0 comments on commit c0d9224

Please sign in to comment.