public function testFormatDuration()
 {
     $value = 1;
     $attributes = array('foo' => 1);
     $textAttributes = array('bar' => 'baz');
     $symbols = array('symbols' => '$');
     $locale = 'en_US';
     $options = array('attributes' => $attributes, 'textAttributes' => $textAttributes, 'symbols' => $symbols, 'locale' => $locale);
     $expectedResult = '1 sec';
     $this->formatter->expects($this->once())->method('formatDuration')->with($value, $attributes, $textAttributes, $symbols, $locale)->will($this->returnValue($expectedResult));
     $this->assertEquals($expectedResult, $this->extension->formatDuration($value, $options));
 }