| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 8 | 
| Code Lines | 5 | 
| Lines | 8 | 
| Ratio | 100 % | 
| 1 | <?php | ||
| 7 | View Code Duplication | 	public function testGistIdOnly() { | |
| 8 | 		$page = $this->objFromFixture('Page', 'GistIdOnly'); | ||
| 9 | $html = ShortcodeParser::get_active()->parse($page->Content); | ||
| 10 | $expected = 'There should be a gist here <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: | ||
| 11 | <a href="https://gist.github.com/gordonbanderson/7fadc8280da9e2694960">Gist</a></noscript> | ||
| 12 | '; | ||
| 13 | $this->assertEquals($expected, $html); | ||
| 14 | } | ||
| 15 | |||
| 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.