:octocat: proper overflow test & coverage

This commit is contained in:
codemasher
2020-02-19 20:47:08 +01:00
parent 577e43a2be
commit 2dde546ef9
3 changed files with 16 additions and 2 deletions
+6
View File
@@ -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));
}
}