Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[feature/extension-manager] Add extension meta info classes for test …

…extensions

PHPBB3-10323
  • Loading branch information...
commit 52f5fa796f473e11a101b4da91e455bdc4839daf 1 parent 482a8c4
@naderman authored
Showing with 37 additions and 0 deletions.
  1. +24 −0 tests/extension/ext/bar/bar.php
  2. +13 −0 tests/extension/ext/moo/moo.php
View
24 tests/extension/ext/bar/bar.php
@@ -0,0 +1,24 @@
+<?php
+
+class phpbb_ext_bar extends phpbb_extension_base
+{
+ static public $state;
+
+ public function enable_step($old_state)
+ {
+ // run 4 steps, then quit
+ if ($old_state === 4)
+ {
+ return false;
+ }
+
+ if ($old_state === false)
+ {
+ $old_state = 0;
+ }
+
+ self::$state = ++$old_state;
+
+ return self::$state;
+ }
+}
View
13 tests/extension/ext/moo/moo.php
@@ -0,0 +1,13 @@
+<?php
+
+class phpbb_ext_moo extends phpbb_extension_base
+{
+ static public $purged;
+
+ public function purge_step($old_state)
+ {
+ self::$purged = true;
+
+ return false;
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.