public function supportsAttribute($attribute) { return $attribute instanceof AuthorizationAttribute && isset($attribute->limitations['valueObject']); }
/** * @dataProvider supportsAttributeProvider */ public function testSupportsAttribute($attribute, $expectedResult) { $voter = new ValueObjectVoter($this->repository); $this->assertSame($expectedResult, $voter->supportsAttribute($attribute)); }