Author: Hugo Briand (briand@ekino.com)
Author: Sylvain Deloux (sylvain.deloux@ekino.com)
Inheritance: implements Sonata\CoreBundle\Component\Status\StatusClassRendererInterface
 public function testGetClass()
 {
     $renderer = new InvoiceStatusRenderer();
     $invoice = $this->getMock('Sonata\\Component\\Invoice\\InvoiceInterface');
     $invoice->expects($this->once())->method('getStatus')->will($this->returnValue(array_rand(BaseInvoice::getStatusList())));
     $this->assertContains($renderer->getStatusClass($invoice, '', 'error'), array('danger', 'warning', 'success'));
 }