| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 7 | 	public function testLanguagesSyntax() { | ||
| 8 | |||
| 9 | 		if (!function_exists('add_translation')) { | ||
| 10 | //whatever, we just test syntax correctness | ||
| 11 | 			function add_translation($country_code, $language_array) { | ||
| 12 | return true; | ||
| 13 | } | ||
| 14 | } | ||
| 15 | |||
| 16 | $path = dirname(dirname(dirname(__FILE__))) . '/languages/en.php'; | ||
| 17 | $this->assertTrue(file_exists($path)); | ||
| 18 | $languages = include($path); | ||
| 19 | $this->assertTrue($languages === 1 || is_array($languages)); | ||
| 20 | } | ||
| 21 | } | 
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.