supportsAttribute() public method

public supportsAttribute ( $attribute )
コード例 #1
0
 public function testSupportsAttribute()
 {
     $manager = new AccessDecisionManager(array($this->getVoterSupportsAttribute(true), $this->getVoterSupportsAttribute(false)));
     $this->assertTrue($manager->supportsAttribute('foo'));
     $manager = new AccessDecisionManager(array($this->getVoterSupportsAttribute(false), $this->getVoterSupportsAttribute(false)));
     $this->assertFalse($manager->supportsAttribute('foo'));
 }