Example #1
0
 /**
  * Test setting multiple attributes
  */
 public function testSetAttr_Array()
 {
     $this->form->setAttr(array('foo' => 'bar', 'zoo' => 123));
     $attr = $this->form->getAttrs(false);
     $this->assertArrayHasKey('method', $attr);
     $this->assertSame('POST', $attr['method']);
     $this->assertArrayHasKey('foo', $attr);
     $this->assertSame('bar', $attr['foo']);
     $this->assertArrayHasKey('zoo', $attr);
     $this->assertSame(123, $attr['zoo']);
 }