Skip to content

Commit

Permalink
Merge branch 'w13_MDL-44510_m27_phpunit4' of https://github.com/skoda…
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 25, 2014
2 parents 66113ef + 9e00d46 commit c56e019
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
9 changes: 3 additions & 6 deletions admin/tool/phpunit/cli/util.php
Expand Up @@ -50,16 +50,13 @@
)
);

if (file_exists(__DIR__.'/../../../../vendor/phpunit/phpunit/PHPUnit/Autoload.php')) {
if (file_exists(__DIR__.'/../../../../vendor/phpunit/phpunit/composer.json')) {
// Composer packages present.
require_once(__DIR__.'/../../../../vendor/autoload.php');
require_once(__DIR__.'/../../../../vendor/phpunit/phpunit/PHPUnit/Autoload.php');

} else {
// Verify PHPUnit PEAR libs can be loaded.
if (!include('PHPUnit/Autoload.php')) {
phpunit_bootstrap_error(PHPUNIT_EXITCODE_PHPUNITMISSING);
}
// Note: installation via PEAR is not supported any more.
phpunit_bootstrap_error(PHPUNIT_EXITCODE_PHPUNITMISSING);
}

if ($options['install'] or $options['drop']) {
Expand Down
3 changes: 0 additions & 3 deletions lib/phpunit/lib.php
Expand Up @@ -25,9 +25,6 @@

// NOTE: MOODLE_INTERNAL is not verified here because we load this before setup.php!

require_once('PHPUnit/Autoload.php');
require_once('PHPUnit/Extensions/Database/Autoload.php');

require_once(__DIR__.'/classes/util.php');
require_once(__DIR__.'/classes/event_mock.php');
require_once(__DIR__.'/classes/event_sink.php');
Expand Down
1 change: 1 addition & 0 deletions lib/upgrade.txt
Expand Up @@ -3,6 +3,7 @@ information provided here is intended especially for developers.

=== 2.7 ===

* PHPUnit cannot be installed via PEAR any more, please use composer package manager instead.
* $core_renderer->block_move_target() changed to support more verbose move-block-here descriptions.

Events and Logging:
Expand Down

0 comments on commit c56e019

Please sign in to comment.