defaultValue() public method

public defaultValue ( $value )
Example #1
0
 public function testDefaultValue()
 {
     $opt = new Option('z');
     $opt->defaultValue(10);
     $this->assertEquals(10, $opt->getValue());
     $this->assertEquals('-z[=10]', $opt->renderReadableSpec(true));
 }
Example #2
0
 public function testDefaultValue()
 {
     $opt = new Option('z');
     $opt->defaultValue(10);
     $this->assertEquals(10, $opt->getValue());
 }