getNumberOfRequiredArguments() public method

Returns the number of required arguments.
public getNumberOfRequiredArguments ( boolean $includeBase = true ) : integer
$includeBase boolean Whether to include arguments in the base format in the result.
return integer The number of required arguments.
示例#1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetNumberOfRequiredArgumentsFailsIfIncludeBaseNoBoolean()
 {
     $format = new ArgsFormat();
     $format->getNumberOfRequiredArguments(1234);
 }