コード例 #1
0
 public function testObserversWillBeNotNotifiedOnDeleteAfterDetachment()
 {
     $ob = new StubObserverImpl();
     $this->address->attachObserver($ob);
     $this->address->attachObserver($ob);
     $this->address->detachObserver($ob);
     $this->address->delete();
     $this->assertFalse($ob->hasBeenCalled());
 }