Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/216610
Change subject: Simplify PHPUnit boostrap, require usage of composer for
running tests
......................................................................
Simplify PHPUnit boostrap, require usage of composer for running tests
Change-Id: I49a76a179ed04098ab58beab90da8f39b8b47107
---
M phpunit.bootstrap.php
1 file changed, 2 insertions(+), 18 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/tools/codesniffer
refs/changes/10/216610/1
diff --git a/phpunit.bootstrap.php b/phpunit.bootstrap.php
index 863acde..63d2aa3 100644
--- a/phpunit.bootstrap.php
+++ b/phpunit.bootstrap.php
@@ -1,22 +1,6 @@
<?php
-// Load CodeSniffer CLI class
-call_user_func( function() {
- if ( !class_exists( 'PHP_CodeSniffer_CLI' ) ) {
- $composer['local'] = dirname( dirname( dirname( __FILE__ ) ) );
- $composer['wmfjenkins'] = '/srv/deployment/integration/phpcs/';
- foreach ( $composer as $location ) {
- $location = $location .
'/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php';
- if ( file_exists( $location ) ) {
- require_once $location;
- break;
- }
- }
- if ( !class_exists( 'PHP_CodeSniffer_CLI' ) ) {
- require_once 'PHP/CodeSniffer/CLI.php';
- }
- }
-} );
+require_once __DIR__ .'/vendor/autoload.php';
// Load Test Helper
-require_once dirname( __FILE__ ) . '/TestHelper.php';
+require_once __DIR__ . '/TestHelper.php';
--
To view, visit https://gerrit.wikimedia.org/r/216610
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I49a76a179ed04098ab58beab90da8f39b8b47107
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/tools/codesniffer
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits