diff options
author | Nils Adermann <naderman@naderman.de> | 2011-08-31 16:34:25 -0400 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-09-29 16:15:53 +0200 |
commit | 52f5fa796f473e11a101b4da91e455bdc4839daf (patch) | |
tree | b440b14a9c105e9bf4ea6dbf8ac22ed81f44c38a /tests/extension | |
parent | 482a8c47ea77dcaaa3c0c23c9a141aea583cf24f (diff) | |
download | forums-52f5fa796f473e11a101b4da91e455bdc4839daf.tar forums-52f5fa796f473e11a101b4da91e455bdc4839daf.tar.gz forums-52f5fa796f473e11a101b4da91e455bdc4839daf.tar.bz2 forums-52f5fa796f473e11a101b4da91e455bdc4839daf.tar.xz forums-52f5fa796f473e11a101b4da91e455bdc4839daf.zip |
[feature/extension-manager] Add extension meta info classes for test extensions
PHPBB3-10323
Diffstat (limited to 'tests/extension')
-rw-r--r-- | tests/extension/ext/bar/bar.php | 24 | ||||
-rw-r--r-- | tests/extension/ext/moo/moo.php | 13 |
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/extension/ext/bar/bar.php b/tests/extension/ext/bar/bar.php new file mode 100644 index 0000000000..c25f815649 --- /dev/null +++ b/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; + } +} diff --git a/tests/extension/ext/moo/moo.php b/tests/extension/ext/moo/moo.php new file mode 100644 index 0000000000..7e621abbb5 --- /dev/null +++ b/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; + } +} |