public function testNotify() { $this->phase->notifyObservers(); $this->phase->registerObserver($this->observer); $this->phase->notifyObservers(); $this->assertEquals(1, $this->observer->getNotifyCount()); $this->phase->unregisterObserver($this->observer); $this->phase->notifyObservers(); $this->assertEquals(1, $this->observer->getNotifyCount()); }