We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
psr/log/LoggerAwareTrait
1 parent deb69d4 commit 647f531Copy full SHA for 647f531
1 file changed
tests/ConnectionTest.php
@@ -5,6 +5,7 @@
5
namespace Yiisoft\Db\Sqlite\Tests;
6
7
use PDO;
8
+use Psr\Log\NullLogger;
9
use Yiisoft\Cache\CacheKeyNormalizer;
10
use Yiisoft\Db\Connection\ConnectionInterface;
11
use Yiisoft\Db\Exception\Exception;
@@ -42,7 +43,7 @@ public function testExceptionContainsRawQuery(): void
42
43
$this->runExceptionTest($db);
44
45
/* profiling only */
- $db->setLogger(null);
46
+ $db->setLogger(new NullLogger());
47
$db->setProfiler($this->profiler);
48
49
@@ -52,7 +53,7 @@ public function testExceptionContainsRawQuery(): void
52
53
54
55
/* disabled */
56
57
$db->setProfiler(null);
58
59
}
0 commit comments