Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
1 | <?php |
||
16 | View Code Duplication | public function testGistWithCaption() { |
|
17 | $page = $this->objFromFixture('Page', 'GistWithCaption'); |
||
18 | $html = ShortcodeParser::get_active()->parse($page->Content); |
||
19 | $expected = 'There should be a gist here with a caption <script src="https://gist.github.com/gordonbanderson/7fadc8280da9e2694960.js"></script><noscript>Please enable javascript to see this Gist inline. It can be viewed externally here: |
||
20 | <a href="https://gist.github.com/gordonbanderson/7fadc8280da9e2694960">Gist</a></noscript><p class="caption">This is a caption</p> |
||
21 | '; |
||
22 | $this->assertEquals($expected, $html); |
||
23 | } |
||
24 | |||
32 |
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.