getNeeds() public method

Get the current set of this option's requirements
public getNeeds ( ) : string[]
return string[] List of required options
 /**
  * Test that requires options are set correctly
  */
 public function testSetRequired()
 {
     $option = new Option('f');
     $option->setNeeds('foo');
     $this->assertTrue(in_array('foo', $option->getNeeds()));
 }