public function testRemovingAttributeReturnsCloneWithoutAttribute($request) { $new = $request->withoutAttribute('foo'); $this->assertNotSame($request, $new); $this->assertNull($new->getAttribute('foo', null)); }