handlesObject() public method

public handlesObject ( $object, $statusName = null )
 public function testHandles()
 {
     $renderer = new InvoiceStatusRenderer();
     $invoice = new \DateTime();
     $this->assertFalse($renderer->handlesObject($invoice));
     $invoice = $this->getMock('Sonata\\Component\\Invoice\\InvoiceInterface');
     $this->assertTrue($renderer->handlesObject($invoice));
 }