jenkins-bot has submitted this change and it was merged.

Change subject: Add another pass test file with a namespace
......................................................................


Add another pass test file with a namespace

Change-Id: Ic526888cafe6709686dc95331c64fa92b4cc8ef9
---
A MediaWiki/Tests/files/generic_namespace_pass.php
1 file changed, 29 insertions(+), 0 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  Jforrester: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/MediaWiki/Tests/files/generic_namespace_pass.php 
b/MediaWiki/Tests/files/generic_namespace_pass.php
new file mode 100644
index 0000000..7dd9947
--- /dev/null
+++ b/MediaWiki/Tests/files/generic_namespace_pass.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace SomeNamespace;
+
+/**
+ * Some comment in a block :D
+ *
+ * @param bool $outputtype
+ * @param int $ts
+ * @return null
+ */
+function namespacedFunction( $outputtype = true, $ts = 3 ) {
+       if ( is_null( $ts ) ) {
+               return null;
+       } else {
+               return wfTimestamp( $outputtype, $ts );
+       }
+}
+
+class FooBar extends AClass implements SomeInterface {
+
+       public function feedThePanda( $word ) {
+               return 'something' . 'something else' . $word;
+       }
+
+       public function makeLegoBlocks() {
+               \SomeNamespace\namespacedFunction( false, 5 );
+       }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/287281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic526888cafe6709686dc95331c64fa92b4cc8ef9
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/tools/codesniffer
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Polybuildr <v.a.ghai...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to