Пример #1
0
 public function testGetValue()
 {
     $this->assertSame(1, $this->struct->getValue('one'));
     $this->assertSame(2, $this->struct->getValue('two'));
     // Default value is null
     $this->assertNull($this->struct->getValue('fuzzy'));
     // Can also be specified
     $this->assertSame(false, $this->struct->getValue('fuzzy', false));
 }