Tests for custom class in l() function.
function testLCustomClass() {
$class = $this
->randomName();
$link = l($this
->randomName(), current_path(), array(
'attributes' => array(
'class' => array(
$class,
),
),
));
$this
->assertTrue($this
->hasClass($link, $class), format_string('Custom class @class is present on link when requested', array(
'@class' => $class,
)));
}