| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testAccordionOutput() |
||
| 19 | { |
||
| 20 | $page = $this->objFromFixture('Page', 'page1'); |
||
| 21 | $page->Content = '[accordion]'; |
||
| 22 | $this->objFromFixture('AccordionItem', 'item1'); |
||
| 23 | $this->objFromFixture('AccordionItem', 'item2'); |
||
| 24 | |||
| 25 | $backend = new SSViewer('AccordionItems'); |
||
| 26 | $html = $backend->process($page); |
||
| 27 | $this->assertContains('AccordionItem1', $html); |
||
| 28 | $this->assertContains('AccordionItem2', $html); |
||
| 29 | |||
| 30 | } |
||
| 31 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.