public function testHelper() { $mock = $this->getMock('fpErrorNotifierMessageHelper'); sfConfig::set('sf_notify_helper', array('class' => get_class($mock))); $notifier = new fpErrorNotifier(new sfEventDispatcher()); $helper = $notifier->helper(); $this->assertInstanceOf(get_class($mock), $helper); }