Пример #1
0
 public function testDefaultAttributes()
 {
     $object = new \Foundation\Form();
     $this->assertNull($object->getAction());
     $this->assertNull($object->getEnctype());
     $this->assertNull($object->getName());
     $this->assertEquals('post', $object->getMethod());
     $this->assertEquals('UTF-8', $object->getAcceptCharset());
     $elements = $object->getElements();
     $this->assertTrue(empty($elements));
 }