Completed
Push — constructors3 ( 18c935...3f87c3 )
by no
06:01 queued 02:46
created

AutoloadingAliasesTest::oldNameProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
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
Bug introduced by
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