diff options
Diffstat (limited to 'ext/spl/tests/observer_002.phpt')
-rw-r--r-- | ext/spl/tests/observer_002.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/spl/tests/observer_002.phpt b/ext/spl/tests/observer_002.phpt index 5d006177f2..504e7ca3f3 100644 --- a/ext/spl/tests/observer_002.phpt +++ b/ext/spl/tests/observer_002.phpt @@ -49,7 +49,7 @@ class ObserverImpl implements SplObserver { echo $this->name . '->' . __METHOD__ . '(' . $subject->getName() . ");\n"; } - + function getName() { return $this->name; @@ -72,18 +72,18 @@ class SubjectImpl implements SplSubject echo $this->name . '->' . __METHOD__ . '(' . $observer->getName() . ");\n"; $this->observers->attach($observer); } - + function detach(SplObserver $observer) { echo $this->name . '->' . __METHOD__ . '(' . $observer->getName() . ");\n"; $this->observers->detach($observer); } - + function count() { return $this->observers->count(); } - + function notify() { echo $this->name . '->' . __METHOD__ . "();\n"; @@ -97,7 +97,7 @@ class SubjectImpl implements SplSubject { return $this->name; } - + function contains($obj) { return $this->observers->contains($obj); |