public function hasArguments($includeBase = true) { Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s'); if (count($this->arguments) > 0) { return true; } if ($includeBase && $this->baseFormat) { return $this->baseFormat->hasArguments(); } return false; }
/** * @expectedException \InvalidArgumentException */ public function testHasArgumentsFailsIfIncludeBaseNoBoolean() { $this->builder->hasArguments(1234); }