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'); } }