mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-08 21:05:50 +00:00
:octocat: logging & coverage -> .build
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user