| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class BarcodeGeneratorFactoryTest extends \PHPUnit_Framework_TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @dataProvider dataProviderTestGetGenerator |
||
| 14 | * @param string $barcodeType |
||
| 15 | * @param string $generatorExpected |
||
| 16 | */ |
||
| 17 | public function testGetGenerator($barcodeType, $generatorExpected) |
||
| 18 | { |
||
| 19 | $factory = new BarcodeGeneratorFactory(); |
||
| 20 | $generatorActual = $factory->getGenerator($barcodeType); |
||
| 21 | |||
| 22 | $this->assertInstanceOf($generatorExpected, $generatorActual); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public function dataProviderTestGetGenerator() |
||
| 32 | ]; |
||
| 33 | } |
||
| 35 |