Skip to content

Commit

Permalink
chore: add debug logger when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Mar 17, 2024
1 parent adf3347 commit 436dea1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/BlurHashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use FFI\ParserException;
use GdImage;
use Imagick;
use Jcupitt\Vips\Config;
use Jcupitt\Vips\DebugLogger;
use Jcupitt\Vips\Image;
use Orchestra\Testbench\Concerns\WithWorkbench;
use Orchestra\Testbench\TestCase;
Expand All @@ -15,6 +17,16 @@ class BlurHashTest extends TestCase
{
use WithWorkbench;

/**
* {@inheritdoc}
*/
protected function setUp(): void
{
parent::setUp();

Config::setLogger(new DebugLogger());
}

protected function file(string $name): string
{
return __DIR__.'/images/'.$name;
Expand Down

0 comments on commit 436dea1

Please sign in to comment.