public function testFormat()
 {
     $value = 1234.5;
     $style = 'decimal';
     $attributes = array('grouping_size' => 3);
     $textAttributes = array('grouping_separator_symbol' => ',');
     $symbols = array('symbols' => '$');
     $locale = 'fr_CA';
     $options = array('attributes' => $attributes, 'textAttributes' => $textAttributes, 'symbols' => $symbols, 'locale' => $locale);
     $expectedResult = '1,234.45';
     $this->formatter->expects($this->once())->method('format')->with($value, $style, $attributes, $textAttributes, $symbols, $locale)->will($this->returnValue($expectedResult));
     $this->assertEquals($expectedResult, $this->extension->format($value, $style, $options));
 }