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