implementsInterface() public method

Checks whether this class implements the given interface.
public implementsInterface ( string $interfaceName ) : boolean
$interfaceName string
return boolean
 public function implementsInterface(string $className) : bool
 {
     return $this->reflectionClass->implementsInterface($className);
 }
 /**
  * {@inheritDoc}
  */
 public function implementsInterface($interface)
 {
     return $this->betterReflectionClass->implementsInterface($interface);
 }
 function it_might_implement_an_interface(ReflectionClass $reflectionClass)
 {
     $reflectionClass->implementsInterface('MyInterface')->willReturn(false);
     $this->implementsInterface('MyInterface')->shouldBe(false);
     $reflectionClass->implementsInterface('MyInterface')->willReturn(true);
     $this->implementsInterface('MyInterface')->shouldBe(true);
 }