5 class TestObserver
implements \SplObserver
11 function __construct($name) {
15 function __toString() {
19 static function reset() {
23 function update(\SplSubject
$event, $supp = null) {
24 self
::$logs .= "$this->name: $event";
25 if ($supp && $supp != $event) {
26 self
::$logs .= ":$supp";
31 function callMe(\stdClass
$arg) {
32 $arg->data
.= __METHOD__
."\n";