blob: 115b62409eec5aaf9cc286406e9354a562387a77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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";
}
}
|