diff --git a/doc/drivers.rst b/doc/drivers.rst index f4e2e882..5289a8f5 100644 --- a/doc/drivers.rst +++ b/doc/drivers.rst @@ -175,7 +175,7 @@ And here is the setup of the driver for doctrine dbal: 'pdo_mysql', )); - $doctrineDriver = new DoctrineDriver($connection); + $doctrineDriver = new Driver($connection); //Don't do this in your application. Use a database set up script instead. try { diff --git a/src/Driver/DoctrineDriver.php b/src/Driver/Doctrine/Driver.php similarity index 96% rename from src/Driver/DoctrineDriver.php rename to src/Driver/Doctrine/Driver.php index bcc48fbf..f6fb27b8 100644 --- a/src/Driver/DoctrineDriver.php +++ b/src/Driver/Doctrine/Driver.php @@ -1,6 +1,6 @@ setUpDatabase(); - $this->driver = new DoctrineDriver($this->connection); + $this->driver = new Driver($this->connection); } protected function tearDown() @@ -171,10 +171,10 @@ protected function setUpDatabase() /** * @return \Doctrine\DBAL\Connection */ - protected abstract function createConnection(); + abstract protected function createConnection(); /** * @return bool */ - protected abstract function isSupported(); + abstract protected function isSupported(); } diff --git a/tests/Driver/MySQLDoctrineDriverTest.php b/tests/Driver/Doctrine/MySQLDriverTest.php similarity index 78% rename from tests/Driver/MySQLDoctrineDriverTest.php rename to tests/Driver/Doctrine/MySQLDriverTest.php index 05ce3c21..993ab17c 100644 --- a/tests/Driver/MySQLDoctrineDriverTest.php +++ b/tests/Driver/Doctrine/MySQLDriverTest.php @@ -1,17 +1,13 @@