Test: /ext/spl/tests/observer_002.phpt - Version 5.4.1RC1-dev    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
007+ int(1)
007- int(3)
015+ MyObjectStorage::valid(0)
016+ $sub->SubjectImpl::detach($ob3);
017+ int(0)
018+ $sub->SubjectImpl::notify();
019+ MyObjectStorage::rewind()
020+ MyObjectStorage::valid(0)
021+ $sub->SubjectImpl::detach($ob2);
022+ $sub->SubjectImpl::detach($ob1);
023+ int(0)
024+ $sub->SubjectImpl::notify();
025+ MyObjectStorage::rewind()
026+ MyObjectStorage::valid(0)
027+ $sub->SubjectImpl::attach($ob3);
028+ int(1)
029+ $sub->SubjectImpl::notify();
030+ MyObjectStorage::rewind()
031+ MyObjectStorage::valid(1)
032+ MyObjectStorage::current($ob3)
033+ MyObjectStorage::key(0)
015- MyObjectStorage::valid(1)
016- MyObjectStorage::current($ob2)
017- MyObjectStorage::key(1)
018- $ob2->ObserverImpl::update($sub);
019- MyObjectStorage::next()
020- MyObjectStorage::valid(1)
021- MyObjectStorage::current($ob3)
022- MyObjectStorage::key(2)
026- $sub->SubjectImpl::detach($ob3);
037+ ===DONE===
027- int(2)
028- $sub->SubjectImpl::notify();
029- MyObjectStorage::rewind()
030- MyObjectStorage::valid(1)
031- MyObjectStorage::current($ob1)
032- MyObjectStorage::key(0)
033- $ob1->ObserverImpl::update($sub);
034- MyObjectStorage::next()
035- MyObjectStorage::valid(1)
036- MyObjectStorage::current($ob2)
037- MyObjectStorage::key(1)
038- $ob2->ObserverImpl::update($sub);
039- MyObjectStorage::next()
040- MyObjectStorage::valid(0)
041- $sub->SubjectImpl::detach($ob2);
042- $sub->SubjectImpl::detach($ob1);
043- int(0)
044- $sub->SubjectImpl::notify();
045- MyObjectStorage::rewind()
046- MyObjectStorage::valid(0)
047- $sub->SubjectImpl::attach($ob3);
048- int(1)
049- $sub->SubjectImpl::notify();
050- MyObjectStorage::rewind()
051- MyObjectStorage::valid(1)
052- MyObjectStorage::current($ob3)
053- MyObjectStorage::key(0)
054- $ob3->ObserverImpl::update($sub);
055- MyObjectStorage::next()
056- MyObjectStorage::valid(0)
057- ===DONE===