getAttributes() public method

Get the attributes of the form object.
public getAttributes ( ) : array
return array
コード例 #1
0
ファイル: FormTest.php プロジェクト: nicksagona/PopPHP
 public function testSetAndGetAttributes()
 {
     $f = new Form('/submit', 'post');
     $f->setAttributes('id', 'test-form');
     $this->assertEquals(3, count($f->getAttributes()));
 }