| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 19 |
| Ratio | 100 % |
| 1 | <?php |
||
| 6 | View Code Duplication | public function testValidImage() |
|
| 7 | { |
||
| 8 | $page = $this->objFromFixture('Page', 'page02'); |
||
| 9 | |||
| 10 | $galleryImage = $this->objFromFixture('GalleryImage' , 'gi01'); |
||
| 11 | $content = "[GalleryImage id='{$galleryImage->ID}']"; |
||
| 12 | $page->Content = $content; |
||
| 13 | $page->write(); |
||
| 14 | $html = ShortcodeParser::get_active()->parse($page->Content); |
||
| 15 | |||
| 16 | $this->assertEquals('<div class="imageWithCaption centercontents "> |
||
|
1 ignored issue
–
show
|
|||
| 17 | <img src=""><div class="meta"> |
||
| 18 | <p class="exif">f s </p> |
||
| 19 | <p class="caption">Test Image 1</p> |
||
| 20 | </div> |
||
| 21 | </div> |
||
| 22 | |||
| 23 | ', $html); |
||
| 24 | } |
||
| 25 | |||
| 42 |
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.