Exemplo n.º 1
0
 /**
  * Testing the getDisplayValue method.
  *
  * @since 1.0
  */
 public function testGetDisplayValue()
 {
     try {
         $options = $this->denum1->getOptions();
         $optionIDs = array_keys($options);
         $this->denum1->setValue($optionIDs[0]);
         $this->assertEquals($options[$optionIDs[0]], $this->denum1->getDisplayValue(), 'testing the getDisplayValue method');
     } catch (AlphaException $e) {
         $this->fail('testing the getDisplayValue method, exception: ' . $e->getMessage());
     }
 }