/** * * @depends testHelper */ public function testMessage() { $mock = $this->getMockForAbstractClass('fpBaseErrorNotifierMessage'); sfConfig::set('sf_notify_message', array('class' => get_class($mock))); $notifier = new fpErrorNotifier(new sfEventDispatcher()); $message = $notifier->message('title'); $this->assertInstanceOf(get_class($mock), $message); // $stub = $this->getStubStrict('fpBaseErrorNotifierMessageHelper', array( // 'summarySection' => array('foo' => 'bar'), // 'formatSubject' => 'Foo Subject')); // // sfConfig::set('sf_notify_helper', array('class' => get_class($mock))); }