Passed
Push — master ( c145f7...3ce0e8 )
by Jeroen De
38s
created

HashArrayTest::instanceProvider()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
rs 9.4285
cc 3
eloc 6
nc 2
nop 0
1
<?php
2
3
namespace Wikibase\DataModel\Tests\HashArray;
4
5
/**
6
 * @covers Wikibase\DataModel\HashArray
7
 *
8
 * @group Wikibase
9
 * @group WikibaseDataModel
10
 * @group HashArray
11
 *
12
 * @license GPL-2.0+
13
 * @author Jeroen De Dauw < [email protected] >
14
 */
15
abstract class HashArrayTest extends \PHPUnit_Framework_TestCase {
16
17
	/**
18
	 * @param array $elements
19
	 *
20
	 * @return array[]
21
	 */
22
	protected function arrayWrap( array $elements ) {
23
		return array_map(
24
			function ( $element ) {
25
				return [ $element ];
26
			},
27
			$elements
28
		);
29
	}
30
31
}
32