filterBlacklistResourceAttribute() public méthode

Return true if the resource is not blacklisted (remove blacklisted resource attributes).
public filterBlacklistResourceAttribute ( string $tag, string $attribute, string $value ) : boolean
$tag string Tag name
$attribute string Attribute name
$value string Attribute value
Résultat boolean
 public function testFilterBlacklistAttribute()
 {
     $filter = new Attribute(new Url('http://google.com'));
     $this->assertTrue($filter->filterBlacklistResourceAttribute('a', 'href', 'http://google.fr/'));
     $this->assertFalse($filter->filterBlacklistResourceAttribute('a', 'href', 'http://res3.feedsportal.com/truc'));
     $this->assertEquals(array('href' => 'http://google.fr/'), $filter->filter('a', array('href' => 'http://google.fr/')));
     $this->assertEquals(array(), $filter->filter('a', array('href' => 'http://res3.feedsportal.com/')));
 }