You can either pass the name of the argument or the 0-based position of
the argument.
/** * @expectedException \InvalidArgumentException */ public function testGetArgumentFailsIfIncludeBaseNoBoolean() { $this->builder->getArgument('argument', 1234); }