We always run with PHPUnit 4. We're also forward-compatible with
PHPUnit 5 (albeit with deprecation notices).
PHPUnit 3 is no longer supported.
Keep __call() to make it easy to re-introduce back-compat or
future-compat logic in the future (like the next patch does).
Change-Id: I4f836db12d43fb22c4c38c0e1401675d751d7841
*/
public function __call( $func, $args ) {
static $compatibility = [
- 'assertEmpty' => 'assertEmpty2', // assertEmpty was added in phpunit 3.7.32
];
if ( isset( $compatibility[$func] ) ) {
}
}
- /**
- * Used as a compatibility method for phpunit < 3.7.32
- * @param string $value
- * @param string $msg
- */
- private function assertEmpty2( $value, $msg ) {
- $this->assertTrue( $value == '', $msg );
- }
-
private static function unprefixTable( &$tableName, $ind, $prefix ) {
$tableName = substr( $tableName, strlen( $prefix ) );
}