🚿 :void

This commit is contained in:
codemasher
2020-03-03 07:21:12 +01:00
parent 41730158d7
commit 6eb4dd1ac3
15 changed files with 81 additions and 77 deletions
+4 -3
View File
@@ -42,16 +42,17 @@ abstract class QROutputTestAbstract extends QRTestAbstract{
$this->setOutputInterface();
}
protected function setOutputInterface(){
protected function setOutputInterface():QROutputInterface{
/** @noinspection PhpFieldAssignmentTypeMismatchInspection */
$this->outputInterface = $this->reflection->newInstanceArgs([$this->options, (new Byte($this->options, 'testdata'))->initMatrix(0)]);
return $this->outputInterface;
}
public function testInstance(){
public function testInstance():void{
$this::assertInstanceOf(QROutputInterface::class, $this->outputInterface);
}
public function testSaveException(){
public function testSaveException():void{
$this->expectException(QRCodeOutputException::class);
$this->expectExceptionMessage('Could not write data to cache file: /foo');