public function testAutogenerateId() { $obj = new HTML_QuickForm2_ContainerImpl('somename'); $this->assertNotEquals('', $obj->getId(), 'Should have an auto-generated \'id\' attribute'); $obj2 = new HTML_QuickForm2_ContainerImpl('somename'); $this->assertNotEquals($obj2->getId(), $obj->getId(), 'Auto-generated \'id\' attributes should be unique'); }