Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class DateFormatterFactoryTest extends \PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @dataProvider dataProviderFormatterTest |
||
15 | * @param string $dateFormat |
||
16 | * @param string $formatterExpected |
||
17 | */ |
||
18 | public function testGetFormatter($dateFormat, $formatterExpected) |
||
19 | { |
||
20 | $factory = new DateFormatterFactory(); |
||
21 | $formatterActual = $factory->getFormatter($dateFormat); |
||
22 | |||
23 | $this->assertInstanceOf($formatterExpected, $formatterActual); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return array |
||
28 | */ |
||
29 | public function dataProviderFormatterTest() |
||
35 | ]; |
||
36 | } |
||
38 |