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