Пример #1
0
 public function testCanRemoveMultipleLabelOptions()
 {
     $element = new Element();
     $options = array('foo' => 'bar', 'foo2' => 'baz', 'foo3' => 'bar2');
     $element->setLabelOptions($options);
     $element->removeLabelOptions(array('foo', 'foo2'));
     $this->assertFalse($element->hasLabelOption('foo'));
     $this->assertFalse($element->hasLabelOption('foo2'));
     $this->assertTrue($element->hasLabelOption('foo3'));
 }