| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class BarcodeGeneratorEan13Test extends \PHPUnit_Framework_TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var BarcodeGeneratorEan13 |
||
| 12 | */ |
||
| 13 | private $generator; |
||
| 14 | |||
| 15 | public function setUp() |
||
| 16 | { |
||
| 17 | $this->generator = new BarcodeGeneratorEan13(); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @dataProvider dataProviderTestGenerate |
||
| 22 | * @param string $data |
||
| 23 | * @param string $expected |
||
| 24 | */ |
||
| 25 | public function testGenerate($data, $expected) |
||
| 26 | { |
||
| 27 | $actual = $this->generator->generate($data); |
||
| 28 | $this->assertEquals($expected, $actual); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function dataProviderTestGenerate() |
||
| 40 | ]; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |