mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-08 12:55:59 +00:00
:octocat: proper overflow test & coverage
This commit is contained in:
@@ -60,4 +60,10 @@ abstract class DatainterfaceTestAbstract extends QRTestAbstract{
|
||||
$this->getMethod('getMinimumVersion')->invoke($this->dataInterface);
|
||||
}
|
||||
|
||||
public function testCodeLengthOverflowException(){
|
||||
$this->expectException(QRCodeDataException::class);
|
||||
$this->expectExceptionMessage('code length overflow');
|
||||
|
||||
$this->dataInterface->setData(\str_repeat('0', 1337));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user