summaryrefslogtreecommitdiffstats
path: root/tests/Logger.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Logger.php')
-rw-r--r--tests/Logger.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/Logger.php b/tests/Logger.php
new file mode 100644
index 0000000..115b624
--- /dev/null
+++ b/tests/Logger.php
@@ -0,0 +1,33 @@
+<?php
+
+class Logger
+{
+ private $_stepNumber = 0;
+
+ public function logStart($name = NULL)
+ {
+ $this->_stepNumber = 0;
+ print "Test started. $name\n";
+ }
+
+ public function logStep(){
+ print "Step ".(++$this->_stepNumber)."\n";
+ }
+
+ public function logEnd($name = NULL){
+ $this->_stepNumber = 0;
+ print "Test finished. $name\n";
+ }
+
+ public function info($msg){
+ print "INFO: $msg\n";
+ }
+
+ public function warning($msg){
+ print "WARNING: $msg\n";
+ }
+
+ public function error($msg){
+ print "ERROR: $msg\n";
+ }
+} \ No newline at end of file