Completed
Push — master ( 37509a...6fde37 )
by
unknown
02:20
created

testGetLocalizedMonthNames()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace ValueParsers\Test;
4
5
use PHPUnit_Framework_TestCase;
6
use ValueParsers\MonolingualMonthNameProvider;
7
8
/**
9
 * @covers ValueParsers\MonolingualMonthNameProvider
10
 *
11
 * @group DataValue
12
 * @group DataValueExtensions
13
 * @group ValueParsers
14
 *
15
 * @license GPL-2.0+
16
 * @author Thiemo Mättig
17
 */
18
class MonolingualMonthNameProviderTest extends PHPUnit_Framework_TestCase {
19
20
	public function testGetLocalizedMonthNames() {
21
		$instance = new MonolingualMonthNameProvider( array( 1 => 'January' ) );
22
		$this->assertSame( array( 1 => 'January' ), $instance->getLocalizedMonthNames( 'xx' ) );
23
	}
24
25
	public function testGetMonthNumbers() {
26
		$instance = new MonolingualMonthNameProvider( array( 1 => 'January' ) );
27
		$this->assertSame( array( 'January' => 1 ), $instance->getMonthNumbers( 'xx' ) );
28
	}
29
30
}
31