Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/189343
Change subject: PHP tests: Just echo the autoload error message, don't
trigger_error()
......................................................................
PHP tests: Just echo the autoload error message, don't trigger_error()
Follow-up to I231b5b9e181e187a9619b57aa3138c6a87f14c45.
Change-Id: Icbc5563f123626362457cd758697fefcf84cf36f
---
M tests/index.php
1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/43/189343/1
diff --git a/tests/index.php b/tests/index.php
index 7ce1fda..33ecb66 100644
--- a/tests/index.php
+++ b/tests/index.php
@@ -1,9 +1,7 @@
<?php
$autoload = '../vendor/autoload.php';
if ( !file_exists( $autoload ) ) {
- trigger_error(
- '<h1>Did you forget to run <code>composer
install</code>?</h1>'
- );
+ echo '<h1>Did you forget to run <code>composer
install</code>?</h1>';
exit();
}
require_once $autoload;
--
To view, visit https://gerrit.wikimedia.org/r/189343
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icbc5563f123626362457cd758697fefcf84cf36f
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits