Exemple #1
0
 public function testDefaultValues()
 {
     $this->assertFalse($this->object->hasDefault());
     $this->object->setDefault("test value");
     $this->assertTrue($this->object->hasDefault());
     $this->assertEquals("test value", $this->object->getDefault());
     $this->assertEquals("test value", $this->object->valueOrDefault());
     $this->object->setValue("value");
     $this->assertEquals("value", $this->object->valueOrDefault());
 }