public function testDriver() { $expectedOptions = array('foo' => 'bar'); $mock = $this->getMockForAbstractClass('fpBaseErrorNotifierDriver', array($expectedOptions)); sfConfig::set('sf_notify_driver', array('class' => get_class($mock), 'options' => $expectedOptions)); $notifier = new fpErrorNotifier(new sfEventDispatcher()); $driver = $notifier->driver(); $this->assertInstanceOf(get_class($mock), $driver); $this->assertAttributeEquals($expectedOptions, '_options', $driver); }