public function toString() { if (!$this->isValid()) { return false; } return $this->n . $this->unit; }
function testToString() { $l = new HTMLPurifier_Length('23', 'in'); $this->assertIdentical($l->toString(), '23in'); }