assertIdentical($expect_name, $token->name);
$this->assertIdentical($expect_attr, $token->attr);
}
public function testConstruct()
{
// standard case
$this->assertTokenConstruction('a', array('href' => 'about:blank'));
// lowercase the tag's name
$this->assertTokenConstruction('A', array('href' => 'about:blank'),
'a');
// lowercase attributes
$this->assertTokenConstruction('a', array('HREF' => 'about:blank'),
'a', array('href' => 'about:blank'));
}
}
// vim: et sw=4 sts=4