supportsAttribute() public method

Checks if the voter supports the given attribute.
public supportsAttribute ( string $attribute ) : boolean
$attribute string An attribute
return boolean true if this Voter supports the attribute, false otherwise
 /**
  * @dataProvider supportsAttributeProvider
  */
 public function testSupportsAttribute($attribute, $expectedResult)
 {
     $voter = new CoreVoter($this->repository);
     $this->assertSame($expectedResult, $voter->supportsAttribute($attribute));
 }