Completed
Pull Request — master (#657)
by Bene
06:46 queued 03:25
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
 * @licence GNU GPL v2+
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 array(
25
			// Full qualified aliases go here.
26
		);
27
	}
28
29
}
30