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