assertEqual($expect_name, $token->name);
$this->assertEqual($expect_attr, $token->attr);
}
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'));
}
}
?>