/** * Tests adding an argument to a Defintion. * * @return void */ public function testAddIntegerArg() { $definition = new Definition($this->container, 'League\\Di\\Stub\\Foo'); $definition->addArg(1); $args = $this->readAttribute($definition, 'arguments'); $this->assertEquals($args[0], 1, 'An added argument should be added to the arguments array, regardless of type'); }