public function testFilterAllowedAttribute()
{
$filter = new Attribute(new Url('http://google.com'));
$this->assertTrue($filter->filterAllowedAttribute('abbr', 'title', 'test'));
$this->assertFalse($filter->filterAllowedAttribute('script', 'type', 'text/javascript'));
$this->assertEquals(array(), $filter->filter('script', array('type' => 'text/javascript')));
$this->assertEquals(array(), $filter->filter('a', array('onclick' => 'javascript')));
$this->assertEquals(array('href' => 'http://google.com/'), $filter->filter('a', array('href' => 'http://google.com')));
}