for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class CodeReviewElggCompatibilityTest extends PHPUnit_Framework_TestCase {
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
/**
* Checks if file is loadable for current version of PHP. Regression test after problems with 1.0.2 version.
*/
public function testLanguagesSyntax() {
if (!function_exists('add_translation')) {
//whatever, we just test syntax correctness
function add_translation($country_code, $language_array) {
$country_code
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$language_array
return true;
}
$path = dirname(dirname(dirname(__FILE__))) . '/languages/en.php';
$this->assertTrue(file_exists($path));
$languages = include($path);
$this->assertTrue($languages === 1 || is_array($languages));
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.