The expression return $this->getMockFor...SQLServerDriver::class) returns the type PHPUnit\Framework\MockObject\MockObject which is incompatible with the type-hinted return Doctrine\DBAL\Driver.
Loading history...
20
}
21
22
protected function createPlatform() : AbstractPlatform
23
{
24
return new SQLServer2012Platform();
25
}
26
27
protected function createSchemaManager(Connection $connection) : AbstractSchemaManager
28
{
29
return new SQLServerSchemaManager($connection);
30
}
31
32
/**
33
* {@inheritDoc}
34
*/
35
protected function getDatabasePlatformsForVersions() : array