:octocat: logging & coverage -> .build

This commit is contained in:
codemasher
2019-12-04 18:34:08 +01:00
parent 314ac6d517
commit 17cefd035f
4 changed files with 44 additions and 21 deletions
+8 -3
View File
@@ -17,11 +17,11 @@ use chillerlan\QRCode\Data\Byte;
use chillerlan\QRCode\Output\{QRCodeOutputException, QROutputInterface};
use chillerlan\QRCodeTest\QRTestAbstract;
/**
*/
use function dirname, file_exists, mkdir;
abstract class QROutputTestAbstract extends QRTestAbstract{
const cachefile = __DIR__.'/output_test.';
const cachefile = __DIR__.'/../../.build/output_test/test.';
/**
* @var \chillerlan\QRCode\Output\QROutputInterface
@@ -41,6 +41,11 @@ abstract class QROutputTestAbstract extends QRTestAbstract{
protected function setUp():void{
parent::setUp();
$buildDir = dirname($this::cachefile);
if(!file_exists($buildDir)){
mkdir($buildDir, 0777, true);
}
$this->options = new QROptions;
$this->setOutputInterface();
}