supports() public method

Inspects if current interface injector is to be used with a given class
public supports ( string $object ) : boolean
$object string
return boolean
 /**
  * @expectedException Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
  */
 public function testSupportsThrowsExceptionOnInvalidArgument()
 {
     $injector = new InterfaceInjector('Symfony\\Tests\\Component\\DependencyInjection\\Service');
     $injector->supports(array());
 }