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