Assert type on the correct variable

parent c4bf930b
...@@ -166,8 +166,8 @@ class ConnectionTest extends DbalTestCase ...@@ -166,8 +166,8 @@ class ConnectionTest extends DbalTestCase
{ {
$eventManager = new EventManager(); $eventManager = new EventManager();
/** @var AbstractPlatform|MockObject $driver */
$platform = $this->createMock(AbstractPlatform::class); $platform = $this->createMock(AbstractPlatform::class);
assert($platform instanceof AbstractPlatform && $platform instanceof MockObject);
$platform->expects($this->once()) $platform->expects($this->once())
->method('setEventManager') ->method('setEventManager')
->with($eventManager); ->with($eventManager);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment