Passed
Push — addAtIndexFix ( 3beda3...e7dec5 )
by no
03:11
created

tests/component/AutoloadingAliasesTest.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Wikibase\DataModel\Tests;
4
5
/**
6
 * @license GPL-2.0+
7
 * @author Jeroen De Dauw < [email protected] >
8
 */
9
class AutoloadingAliasesTest extends \PHPUnit_Framework_TestCase {
10
11
	/**
12
	 * @dataProvider oldNameProvider
13
	 */
14
	public function testAliasExists( /* $className */ ) {
15
		$this->markTestSkipped( 'No class aliases at the moment' );
16
17
		$this->assertTrue(
18
			class_exists( $className ) || interface_exists( $className ),
0 ignored issues
show
The variable $className does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
19
			'Class name "' . $className . '" should still exist as alias'
20
		);
21
	}
22
23
	public function oldNameProvider() {
24
		return [
25
			// Full qualified aliases go here.
26
		];
27
	}
28
29
}
30