| Conditions | 1 |
| Paths | 1 |
| Total Lines | 34 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | public function testAsterisk() |
||
| 8 | { |
||
| 9 | $form = $this->factory->createNamedBuilder('form', $this->getFormType('form')); |
||
| 10 | $tab = $form->create('tab1', $this->getFormType('tab')); |
||
| 11 | $tab->add('test1', $this->getFormType('text')); |
||
| 12 | $form->add($tab); |
||
| 13 | |||
| 14 | $view = $form->getForm()->createView(); |
||
| 15 | $html = $this->renderWidget($view); |
||
| 16 | |||
| 17 | $this->assertMatchesXpath($this->removeBreaks($html), |
||
| 18 | ' |
||
| 19 | /fieldset |
||
| 20 | [ |
||
| 21 | ( |
||
| 22 | ./ul[@class="tabs nav-tabs"] |
||
| 23 | [ |
||
| 24 | ./li[@class="active"] |
||
| 25 | [ |
||
| 26 | ./a[@data-toggle="tab"] |
||
| 27 | ] |
||
| 28 | ] |
||
| 29 | ) |
||
| 30 | and |
||
| 31 | ( |
||
| 32 | ./div[@class="tab-content"] |
||
| 33 | [ |
||
| 34 | ./div[@class="tab-pane active"] |
||
| 35 | ] |
||
| 36 | ) |
||
| 37 | ] |
||
| 38 | ' |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |