forked from doctrine/dbal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request doctrine#6066 from morozov/pre-phpunit-10
Prerequisites for PHPUnit update to version 10 in 4.0.x
- Loading branch information
Showing
56 changed files
with
336 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Doctrine\DBAL\Tests\Driver; | ||
|
||
use Doctrine\DBAL\Connection; | ||
use Doctrine\DBAL\Driver\API\ExceptionConverter as ExceptionConverterInterface; | ||
use Doctrine\DBAL\Driver\API\IBMDB2\ExceptionConverter; | ||
use Doctrine\DBAL\Platforms\AbstractPlatform; | ||
use Doctrine\DBAL\Platforms\DB2Platform; | ||
use Doctrine\DBAL\Schema\AbstractSchemaManager; | ||
use Doctrine\DBAL\Schema\DB2SchemaManager; | ||
|
||
/** @extends AbstractDriverTestCase<DB2Platform> */ | ||
abstract class AbstractDB2DriverTestCase extends AbstractDriverTestCase | ||
{ | ||
protected function createPlatform(): AbstractPlatform | ||
{ | ||
return new DB2Platform(); | ||
} | ||
|
||
protected function createSchemaManager(Connection $connection): AbstractSchemaManager | ||
{ | ||
return new DB2SchemaManager( | ||
$connection, | ||
$this->createPlatform(), | ||
); | ||
} | ||
|
||
protected function createExceptionConverter(): ExceptionConverterInterface | ||
{ | ||
return new ExceptionConverter(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Doctrine\DBAL\Tests\Driver; | ||
|
||
use Doctrine\DBAL\Connection; | ||
use Doctrine\DBAL\Driver\API\ExceptionConverter; | ||
use Doctrine\DBAL\Driver\API\MySQL; | ||
use Doctrine\DBAL\Platforms\AbstractPlatform; | ||
use Doctrine\DBAL\Platforms\MySQLPlatform; | ||
use Doctrine\DBAL\Schema\AbstractSchemaManager; | ||
use Doctrine\DBAL\Schema\MySQLSchemaManager; | ||
|
||
/** @extends AbstractDriverTestCase<MySQLPlatform> */ | ||
abstract class AbstractMySQLDriverTestCase extends AbstractDriverTestCase | ||
{ | ||
protected function createPlatform(): AbstractPlatform | ||
{ | ||
return new MySQLPlatform(); | ||
} | ||
|
||
protected function createSchemaManager(Connection $connection): AbstractSchemaManager | ||
{ | ||
return new MySQLSchemaManager( | ||
$connection, | ||
$this->createPlatform(), | ||
); | ||
} | ||
|
||
protected function createExceptionConverter(): ExceptionConverter | ||
{ | ||
return new MySQL\ExceptionConverter(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.