Unicode plugin: import tests and update current ones
[catagits/Catalyst-Runtime.git] / t / lib / TestLogger.pm
diff --git a/t/lib/TestLogger.pm b/t/lib/TestLogger.pm
new file mode 100644 (file)
index 0000000..f1dc7e6
--- /dev/null
@@ -0,0 +1,23 @@
+package TestLogger;
+use strict;
+use warnings;
+
+our @LOGS;
+our @ELOGS;
+
+sub new {
+    return bless {}, __PACKAGE__;
+}
+
+sub debug {
+    shift;
+    push(@LOGS, shift());
+}
+
+sub warn {
+    shift;
+    push(@ELOGS, shift());
+}
+
+1;
+