public function testAttributes() { $this->txtDate->setAttribute('rel', 'bauffman.jpg'); $this->assertEquals('bauffman.jpg', $this->txtDate->getAttribute('rel')); $this->txtDate->setAttributes(array('id' => 'specialID')); $this->assertEquals(array('id' => 'specialID', 'name' => 'date', 'maxlength' => 10, 'class' => 'inputDatefield', 'rel' => 'bauffman.jpg'), $this->txtDate->getAttributes()); }