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