8000 minor #14637 [2.7][DoctrineBridge] change Logger interface in tests t… · wouterj/symfony@ba719d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba719d1

Browse files
committed
minor symfony#14637 [2.7][DoctrineBridge] change Logger interface in tests to use Psr\\Lo… (vincentaubert)
This PR was merged into the 2.7 branch. Discussion ---------- [2.7][DoctrineBridge] change Logger interface in tests to use Psr\\Lo… | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 5e8864d [2.7][DoctrineBridge] change Logger interface in tests to use Psr\\Log\\LoggerInterface instead of Symfony\\Component\\HttpKernel\\Log\\LoggerInterface"
2 parents ec2df34 + 5e8864d commit ba719d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testLogNonUtf8()
7575

7676
public function testLogLongString()
7777
{
78-
$logger = $this->getMock('Symfony\\Component\\HttpKernel\\Log\\LoggerInterface');
78+
$logger = $this->getMock('Psr\\Log\\LoggerInterface');
7979

8080
$dbalLogger = $this
8181
->getMockBuilder('Symfony\\Bridge\\Doctrine\\Logger\\DbalLogger')
@@ -107,7 +107,7 @@ public function testLogUTF8LongString()
107107
$this->markTestSkipped('Testing log shortening of utf8 charsets requires the mb_detect_encoding() function.');
108108
}
109109

110-
$logger = $this->getMock('Symfony\\Component\\HttpKernel\\Log\\LoggerInterface');
110+
$logger = $this->getMock('Psr\\Log\\LoggerInterface');
111111

112112
$dbalLogger = $this
113113
->getMockBuilder('Symfony\\Bridge\\Doctrine\\Logger\\DbalLogger')

0 commit comments

Comments
 (0)
0