assertEquals('
foobar
', heading('foobar'));
}
// ------------------------------------------------------------------------
public function testUl()
{
$expect = <<
foo
bar
EOH;
$expect = ltrim($expect);
$list = array('foo', 'bar');
$this->assertEquals($expect, ul($list));
$expect = <<
foo
bar
EOH;
$expect = ltrim($expect);
$list = array('foo', 'bar');
$this->assertEquals($expect, ul($list, ' class="test"'));
$this->assertEquals($expect, ul($list, array('class' => 'test')));
}
// ------------------------------------------------------------------------
public function testNBS()
{
$this->assertEquals(' ', nbs(3));
}
// ------------------------------------------------------------------------
public function testMeta()
{
$this->assertEquals("\n", meta('test', 'foo'));
$expect = "\n";
$this->assertEquals($expect, meta(array('name' => 'foo')));
}
}