/** * Test the removeArgument method. * * @return void * * @since 1.0 */ public function testRemoveArgument() { $this->assertNull($this->instance->removeArgument('non-existing')); $this->instance->addArgument('foo', 'bar'); $old = $this->instance->removeArgument('foo'); $this->assertEquals('bar', $old); $this->assertFalse($this->instance->hasArgument('foo')); }