function testGetSetValue()
 {
     $opt = new lmbCliOption('f');
     $this->assertNull($opt->getValue());
     $opt->setValue('wow');
     $this->assertEqual($opt->getValue(), 'wow');
 }
Example #2
0
 function testValidateForbiddenValue()
 {
     $opt = new lmbCliOption('f', lmbCliOption::VALUE_NO);
     $opt->validate();
     //should pass
     $opt->setValue(1);
     try {
         $opt->validate();
         $this->assertTrue(false);
     } catch (lmbCliException $e) {
     }
 }