/** * @test * @depends validationTest */ public function withoutChecksumTest() { $bc = new Ean13('750103131130', false); $this->assertEquals($bc->getData(), '7501031311309'); $this->assertEquals($bc->getChecksum(), '9'); $this->assertEquals($bc->getRealData(), '750103131130'); $this->assertEquals($bc->getEncoded()->getBinary(), '10101100010100111001100101001110111101011001101010100001011001101100110100001011100101110100101'); }
/** * * @param EncoderInterface $encoder * @param string $data */ protected function encodeData(EncoderInterface &$encoder, $data) { $encoder = $this->ean13->getEncoded(); }