hasOption() 공개 메소드

You can either pass the long or the short name of the option.
public hasOption ( string $name, boolean $includeBase = true ) : boolean
$name string The long or short option name.
$includeBase boolean Whether to include options in the base format in the search.
리턴 boolean Returns `true` if the option with the given name could be found and `false` otherwise.
예제 #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testHasOptionFailsIfIncludeBaseNoBoolean()
 {
     $this->builder->hasOption('option', 1234);
 }