Example #1
0
 /**
  */
 public function testFormOptions()
 {
     $this->object->set('test', 'existing');
     $this->assertFalse($this->object->get('nonExisting'));
     $this->assertEquals('existing', $this->object->get('test'));
     $this->assertEquals('default', $this->object->get('nonExists', 'default'));
     $this->assertTrue(is_array($this->object->getAll()));
     $this->assertEquals(1, count($this->object->getAll()));
     $this->object->setAll(array('test' => 'merged', 'second' => 'test'));
     $this->assertEquals(2, count($this->object->getAll()));
     $this->assertEquals('merged', $this->object->get('test'));
 }