GTIN-8 (formerly EAN-8) is derived from EAN-13, introduced for use on small packages where an EAN-13 barcode would be too large;
for example on cigarettes, pencils, and chewing gum packets.
/** * testInvalidGtin8 * * @param mixed $gtin8 * * @dataProvider getInvalidGtin8 * * @return void */ public function testInvalidGtin8($gtin8) { $this->assertFalse(Gtin8::validate($gtin8)); }