예제 #1
0
파일: Tag.php 프로젝트: objective-php/html
 /**
  * @param mixed $offset
  *
  * @return bool
  */
 public function offsetExists($offset)
 {
     return $this->attributes->has($offset);
 }
예제 #2
0
 public function testInitialization()
 {
     $attribs = new Attributes(['x' => 'y']);
     $this->assertTrue($attribs->has('x'));
     $this->assertEquals('y', $attribs['x']);
 }