Пример #1
0
 public function testCanSetAlwaysWrap()
 {
     $element = new Element('foo');
     $element->setLabelOption('always_wrap', true);
     $this->assertTrue($element->getLabelOption('always_wrap'));
 }
Пример #2
0
 public function testCanAddLabelOptionSingly()
 {
     $element = new Element();
     $element->setLabelOption('foo', 'bar');
     $this->assertEquals('bar', $element->getLabelOption('foo'));
 }