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;
+	}
+}