jenkins-bot has submitted this change and it was merged.
Change subject: add runtime initialise to phpunit tests
......................................................................
add runtime initialise to phpunit tests
it needed for testing on vagrant
for example:
vagrant run-tests extensions/PhpTagsFunctions
Change-Id: I0338e5045a9b2037baa2f051bb6eb94b8ea0c558
---
A tests/phpunit/!!!firstInit_Test.php
1 file changed, 8 insertions(+), 0 deletions(-)
Approvals:
Pastakhov: Looks good to me, approved
jenkins-bot: Verified
diff --git "a/tests/phpunit/\041\041\041firstInit_Test.php"
"b/tests/phpunit/\041\041\041firstInit_Test.php"
new file mode 100644
index 0000000..3e77f5e
--- /dev/null
+++ "b/tests/phpunit/\041\041\041firstInit_Test.php"
@@ -0,0 +1,8 @@
+<?php
+
+if ( ! defined( 'PhpTagsRuntimeFirstInit' ) ) {
+ wfRunHooks( 'PhpTagsRuntimeFirstInit' );
+ \PhpTags\Runtime::$loopsLimit = 1000;
+ define( 'PhpTagsRuntimeFirstInit', true );
+}
+
--
To view, visit https://gerrit.wikimedia.org/r/154993
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0338e5045a9b2037baa2f051bb6eb94b8ea0c558
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PhpTagsFunctions
Gerrit-Branch: master
Gerrit-Owner: Pastakhov <[email protected]>
Gerrit-Reviewer: Pastakhov <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits