芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/lot.mgaplay.com.br/vendor/robthree/twofactorauth/testsDependency/BaconQRCodeTest.php
expectException(\RuntimeException::class); $qr = new BaconQrCodeProvider(1, '#000', '#FFF', 'svg'); } else { $qr = new BaconQrCodeProvider(1, '#000', '#FFF', 'svg'); $tfa = new TwoFactorAuth('Test&Issuer', 6, 30, 'sha1', $qr); $data = $this->DecodeDataUri($tfa->getQRCodeImageAsDataUri('Test&Label', 'VMR466AB62ZBOKHE')); $this->assertEquals('image/svg+xml', $data['mimetype']); } } public function testBadTextColour() { $this->expectException(\RuntimeException::class); new BaconQrCodeProvider(1, 'not-a-colour', '#FFF'); } public function testBadBackgroundColour() { $this->expectException(\RuntimeException::class); new BaconQrCodeProvider(1, '#000', 'not-a-colour'); } public function testBadTextColourHexRef() { $this->expectException(\RuntimeException::class); new BaconQrCodeProvider(1, '#AAAA', '#FFF'); } public function testBadBackgroundColourHexRef() { $this->expectException(\RuntimeException::class); new BaconQrCodeProvider(1, '#000', '#AAAA'); } }