コード例 #1
0
 /**
  * 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));
 }
コード例 #2
0
 public function testHas()
 {
     $this->property->setValue($this->bag, ['foo' => 'bar']);
     $this->assertTrue($this->bag->has('foo'));
     $this->assertFalse($this->bag->has('abc'));
 }