Download the PHP package matthiasnoback/doctrine-dbal-test-service-provider without Composer
On this page you can find all versions of the php package matthiasnoback/doctrine-dbal-test-service-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matthiasnoback/doctrine-dbal-test-service-provider
More information about matthiasnoback/doctrine-dbal-test-service-provider
Files in matthiasnoback/doctrine-dbal-test-service-provider
Package doctrine-dbal-test-service-provider
Short Description Service provider for tests in need of a Doctrine DBAL connection
License MIT
Homepage http://github.com/matthiasnoback/doctrine-dbal-test-service-provider
Informations about the package doctrine-dbal-test-service-provider
Doctrine DBAL service provider for unit tests
This library contains a service provider to be used with a service container for PHPUnit tests.
Usage
Use the trait Noback\PHPUnitTestServiceContainer\PHPUnit\TestCaseWithDoctrineDbalConnection
in your test class.
You then need to implement the createSchema()
and return an instance of Doctrine\DBAL\Schema\Schema
.
For each test method a database connection (of instance Doctrine\DBAL\Connection
) will be available. Also the schema
returned by createSchema()
will be created in the database. The database itself is (by default) an SQLite in-memory
database, which will leave no traces on the filesystem.
Read more
All versions of doctrine-dbal-test-service-provider with dependencies
matthiasnoback/phpunit-test-service-container Version ^3.1
phpunit/phpunit Version ^6.0 || ^7.0 || ^8.0 || ^9.0
doctrine/dbal Version ^2.4