1 | <?php |
||
2 | class CodeReviewElggCompatibilityTest extends PHPUnit_Framework_TestCase { |
||
|
|||
3 | |||
4 | /** |
||
5 | * Checks if file is loadable for current version of PHP. Regression test after problems with 1.0.2 version. |
||
6 | */ |
||
7 | public function testLanguagesSyntax() { |
||
8 | |||
9 | if (!function_exists('add_translation')) { |
||
10 | //whatever, we just test syntax correctness |
||
11 | |||
12 | function add_translation($country_code, $language_array) { |
||
22 | } |
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.