Ejemplo n.º 1
0
 /**
  * @param mixed $offset
  *
  * @return bool
  */
 public function offsetExists($offset)
 {
     return $this->attributes->has($offset);
 }
Ejemplo n.º 2
0
 public function testInitialization()
 {
     $attribs = new Attributes(['x' => 'y']);
     $this->assertTrue($attribs->has('x'));
     $this->assertEquals('y', $attribs['x']);
 }