/** * Does this collection have a given header? * * @param string $key The case-insensitive header name * * @return bool */ public function has($key) { return parent::has($this->normalizeKey($key)); }
public function testHas() { $this->property->setValue($this->bag, ['foo' => 'bar']); $this->assertTrue($this->bag->has('foo')); $this->assertFalse($this->bag->has('abc')); }