From ded33db3b762d1efcea2ad4814dfdfd645deb5a3 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 8 Feb 2020 14:45:44 -0500 Subject: [PATCH] [#14733] - Renamed DM to DataMapper (namespace) --- phalcon/{DM => DataMapper}/Pdo/Connection.zep | 8 ++-- .../Pdo/Connection/AbstractConnection.zep | 6 +-- .../Pdo/Connection/ConnectionInterface.zep | 8 ++-- .../Pdo/Connection/Decorated.zep | 8 ++-- .../Pdo/Connection/PdoInterface.zep | 2 +- .../Pdo/ConnectionLocator.zep | 6 +-- .../Pdo/ConnectionLocatorInterface.zep | 4 +- .../Pdo/Exception/CannotDisconnect.zep | 2 +- .../Pdo/Exception/ConnectionNotFound.zep | 2 +- .../Pdo/Exception/Exception.zep | 2 +- .../Pdo/Profiler/MemoryLogger.zep | 2 +- .../Pdo/Profiler/Profiler.zep | 10 ++--- .../Pdo/Profiler/ProfilerInterface.zep | 2 +- .../Pdo/ConnectionFixture.php | 0 .../{DM => DataMapper}/Pdo/PdoFixture.php | 0 .../CommitInTransactionRollBackCest.php | 16 ++++---- .../ConnectDisconnectIsConnectedCest.php | 14 +++---- .../Pdo/Connection/ConstructCest.php | 14 +++---- .../Pdo/Connection/DebugInfoCest.php | 10 ++--- .../Connection/Decorated/ConstructCest.php | 10 ++--- .../Connection/Decorated/DisconnectCest.php | 10 ++--- .../Pdo/Connection/ErrorCodeCest.php | 10 ++--- .../Pdo/Connection/ErrorInfoCest.php | 10 ++--- .../Pdo/Connection/ExecCest.php | 10 ++--- .../Pdo/Connection/FetchAffectedCest.php | 10 ++--- .../Pdo/Connection/FetchAllCest.php | 10 ++--- .../Pdo/Connection/FetchAssocCest.php | 10 ++--- .../Pdo/Connection/FetchColumnCest.php | 10 ++--- .../Pdo/Connection/FetchGroupCest.php | 10 ++--- .../Pdo/Connection/FetchObjectCest.php | 16 ++++---- .../Pdo/Connection/FetchObjectsCest.php | 16 ++++---- .../Pdo/Connection/FetchOneCest.php | 22 +++++----- .../Pdo/Connection/FetchPairsCest.php | 10 ++--- .../Pdo/Connection/FetchValueCest.php | 10 ++--- .../Pdo/Connection/GetAdapterCest.php | 10 ++--- .../Connection/GetAvailableDriversCest.php | 10 ++--- .../Pdo/Connection/GetQuoteNamesCest.php | 10 ++--- .../Pdo/Connection/GetSetAttributeCest.php | 10 ++--- .../Pdo/Connection/GetSetProfilerCest.php | 12 +++--- .../Pdo/Connection/LastInsertIdCest.php | 10 ++--- .../Pdo/Connection/QueryCest.php | 10 ++--- .../Pdo/Connection/QuoteCest.php | 8 ++-- .../Pdo/Connection/UnderscoreCallCest.php | 18 ++++----- .../Pdo/ConnectionLocator/ConstructCest.php | 12 +++--- .../ConnectionLocator/GetSetMasterCest.php | 12 +++--- .../Pdo/ConnectionLocator/GetSetReadCest.php | 40 +++++++++---------- .../Pdo/ConnectionLocator/GetSetWriteCest.php | 40 +++++++++---------- .../Pdo/Profiler/MemoryLogger/LevelsCest.php | 8 ++-- .../Pdo/Profiler/MemoryLogger/LogCest.php | 8 ++-- .../Pdo/Profiler/Profiler/ConstructCest.php | 8 ++-- .../Pdo/Profiler/Profiler/GetLoggerCest.php | 10 ++--- .../Profiler/Profiler/GetSetLogFormatCest.php | 8 ++-- .../Profiler/Profiler/GetSetLogLevelCest.php | 8 ++-- .../Pdo/Profiler/Profiler/IsSetActiveCest.php | 8 ++-- .../Pdo/Profiler/Profiler/StartFinishCest.php | 8 ++-- 55 files changed, 279 insertions(+), 279 deletions(-) rename phalcon/{DM => DataMapper}/Pdo/Connection.zep (95%) rename phalcon/{DM => DataMapper}/Pdo/Connection/AbstractConnection.zep (99%) rename phalcon/{DM => DataMapper}/Pdo/Connection/ConnectionInterface.zep (96%) rename phalcon/{DM => DataMapper}/Pdo/Connection/Decorated.zep (88%) rename phalcon/{DM => DataMapper}/Pdo/Connection/PdoInterface.zep (98%) rename phalcon/{DM => DataMapper}/Pdo/ConnectionLocator.zep (97%) rename phalcon/{DM => DataMapper}/Pdo/ConnectionLocatorInterface.zep (95%) rename phalcon/{DM => DataMapper}/Pdo/Exception/CannotDisconnect.zep (93%) rename phalcon/{DM => DataMapper}/Pdo/Exception/ConnectionNotFound.zep (92%) rename phalcon/{DM => DataMapper}/Pdo/Exception/Exception.zep (91%) rename phalcon/{DM => DataMapper}/Pdo/Profiler/MemoryLogger.zep (96%) rename phalcon/{DM => DataMapper}/Pdo/Profiler/Profiler.zep (95%) rename phalcon/{DM => DataMapper}/Pdo/Profiler/ProfilerInterface.zep (98%) rename tests/_data/fixtures/{DM => DataMapper}/Pdo/ConnectionFixture.php (100%) rename tests/_data/fixtures/{DM => DataMapper}/Pdo/PdoFixture.php (100%) rename tests/database/{DM => DataMapper}/Pdo/Connection/CommitInTransactionRollBackCest.php (84%) rename tests/database/{DM => DataMapper}/Pdo/Connection/ConnectDisconnectIsConnectedCest.php (78%) rename tests/database/{DM => DataMapper}/Pdo/Connection/ConstructCest.php (66%) rename tests/database/{DM => DataMapper}/Pdo/Connection/DebugInfoCest.php (73%) rename tests/database/{DM => DataMapper}/Pdo/Connection/Decorated/ConstructCest.php (71%) rename tests/database/{DM => DataMapper}/Pdo/Connection/Decorated/DisconnectCest.php (73%) rename tests/database/{DM => DataMapper}/Pdo/Connection/ErrorCodeCest.php (64%) rename tests/database/{DM => DataMapper}/Pdo/Connection/ErrorInfoCest.php (66%) rename tests/database/{DM => DataMapper}/Pdo/Connection/ExecCest.php (78%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchAffectedCest.php (77%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchAllCest.php (80%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchAssocCest.php (80%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchColumnCest.php (84%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchGroupCest.php (81%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchObjectCest.php (79%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchObjectsCest.php (85%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchOneCest.php (84%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchPairsCest.php (81%) rename tests/database/{DM => DataMapper}/Pdo/Connection/FetchValueCest.php (75%) rename tests/database/{DM => DataMapper}/Pdo/Connection/GetAdapterCest.php (74%) rename tests/database/{DM => DataMapper}/Pdo/Connection/GetAvailableDriversCest.php (66%) rename tests/database/{DM => DataMapper}/Pdo/Connection/GetQuoteNamesCest.php (80%) rename tests/database/{DM => DataMapper}/Pdo/Connection/GetSetAttributeCest.php (74%) rename tests/database/{DM => DataMapper}/Pdo/Connection/GetSetProfilerCest.php (67%) rename tests/database/{DM => DataMapper}/Pdo/Connection/LastInsertIdCest.php (81%) rename tests/database/{DM => DataMapper}/Pdo/Connection/QueryCest.php (80%) rename tests/database/{DM => DataMapper}/Pdo/Connection/QuoteCest.php (83%) rename tests/database/{DM => DataMapper}/Pdo/Connection/UnderscoreCallCest.php (65%) rename tests/database/{DM => DataMapper}/Pdo/ConnectionLocator/ConstructCest.php (64%) rename tests/database/{DM => DataMapper}/Pdo/ConnectionLocator/GetSetMasterCest.php (68%) rename tests/database/{DM => DataMapper}/Pdo/ConnectionLocator/GetSetReadCest.php (67%) rename tests/database/{DM => DataMapper}/Pdo/ConnectionLocator/GetSetWriteCest.php (68%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/MemoryLogger/LevelsCest.php (82%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/MemoryLogger/LogCest.php (78%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/Profiler/ConstructCest.php (64%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/Profiler/GetLoggerCest.php (71%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/Profiler/GetSetLogFormatCest.php (75%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/Profiler/GetSetLogLevelCest.php (73%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/Profiler/IsSetActiveCest.php (69%) rename tests/database/{DM => DataMapper}/Pdo/Profiler/Profiler/StartFinishCest.php (76%) diff --git a/phalcon/DM/Pdo/Connection.zep b/phalcon/DataMapper/Pdo/Connection.zep similarity index 95% rename from phalcon/DM/Pdo/Connection.zep rename to phalcon/DataMapper/Pdo/Connection.zep index a75b061d7b0..0e17c2e0aa9 100644 --- a/phalcon/DM/Pdo/Connection.zep +++ b/phalcon/DataMapper/Pdo/Connection.zep @@ -12,12 +12,12 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo; +namespace Phalcon\DataMapper\Pdo; use InvalidArgumentException; -use Phalcon\DM\Pdo\Connection\AbstractConnection; -use Phalcon\DM\Pdo\Profiler\Profiler; -use Phalcon\DM\Pdo\Profiler\ProfilerInterface; +use Phalcon\DataMapper\Pdo\Connection\AbstractConnection; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** * Provides array quoting, profiling, a new `perform()` method, new `fetch*()` diff --git a/phalcon/DM/Pdo/Connection/AbstractConnection.zep b/phalcon/DataMapper/Pdo/Connection/AbstractConnection.zep similarity index 99% rename from phalcon/DM/Pdo/Connection/AbstractConnection.zep rename to phalcon/DataMapper/Pdo/Connection/AbstractConnection.zep index 8abb39812ae..e5d426e2d2e 100644 --- a/phalcon/DM/Pdo/Connection/AbstractConnection.zep +++ b/phalcon/DataMapper/Pdo/Connection/AbstractConnection.zep @@ -13,11 +13,11 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Connection; +namespace Phalcon\DataMapper\Pdo\Connection; use BadMethodCallException; -use Phalcon\DM\Pdo\Exception\CannotBindValue; -use Phalcon\DM\Pdo\Profiler\ProfilerInterface; +use Phalcon\DataMapper\Pdo\Exception\CannotBindValue; +use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** * Provides array quoting, profiling, a new `perform()` method, new `fetch*()` diff --git a/phalcon/DM/Pdo/Connection/ConnectionInterface.zep b/phalcon/DataMapper/Pdo/Connection/ConnectionInterface.zep similarity index 96% rename from phalcon/DM/Pdo/Connection/ConnectionInterface.zep rename to phalcon/DataMapper/Pdo/Connection/ConnectionInterface.zep index 14b5ba7a14d..8fe7793769c 100644 --- a/phalcon/DM/Pdo/Connection/ConnectionInterface.zep +++ b/phalcon/DataMapper/Pdo/Connection/ConnectionInterface.zep @@ -13,11 +13,11 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Connection; +namespace Phalcon\DataMapper\Pdo\Connection; -use Phalcon\DM\Pdo\Exception\CannotBindValue; -use Phalcon\DM\Pdo\Parser\ParserInterface; -use Phalcon\DM\Pdo\Profiler\ProfilerInterface; +use Phalcon\DataMapper\Pdo\Exception\CannotBindValue; +use Phalcon\DataMapper\Pdo\Parser\ParserInterface; +use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** * Provides array quoting, profiling, a new `perform()` method, new `fetch*()` diff --git a/phalcon/DM/Pdo/Connection/Decorated.zep b/phalcon/DataMapper/Pdo/Connection/Decorated.zep similarity index 88% rename from phalcon/DM/Pdo/Connection/Decorated.zep rename to phalcon/DataMapper/Pdo/Connection/Decorated.zep index ee3f13c62bf..912db015197 100644 --- a/phalcon/DM/Pdo/Connection/Decorated.zep +++ b/phalcon/DataMapper/Pdo/Connection/Decorated.zep @@ -13,11 +13,11 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Connection; +namespace Phalcon\DataMapper\Pdo\Connection; -use Phalcon\DM\Pdo\Exception\CannotDisconnect; -use Phalcon\DM\Pdo\Profiler\Profiler; -use Phalcon\DM\Pdo\Profiler\ProfilerInterface; +use Phalcon\DataMapper\Pdo\Exception\CannotDisconnect; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** * Decorates an existing PDO instance with the extended methods. diff --git a/phalcon/DM/Pdo/Connection/PdoInterface.zep b/phalcon/DataMapper/Pdo/Connection/PdoInterface.zep similarity index 98% rename from phalcon/DM/Pdo/Connection/PdoInterface.zep rename to phalcon/DataMapper/Pdo/Connection/PdoInterface.zep index 37082f69e14..27c51987835 100644 --- a/phalcon/DM/Pdo/Connection/PdoInterface.zep +++ b/phalcon/DataMapper/Pdo/Connection/PdoInterface.zep @@ -13,7 +13,7 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Connection; +namespace Phalcon\DataMapper\Pdo\Connection; /** diff --git a/phalcon/DM/Pdo/ConnectionLocator.zep b/phalcon/DataMapper/Pdo/ConnectionLocator.zep similarity index 97% rename from phalcon/DM/Pdo/ConnectionLocator.zep rename to phalcon/DataMapper/Pdo/ConnectionLocator.zep index 40263a2a71c..5286fccfb33 100644 --- a/phalcon/DM/Pdo/ConnectionLocator.zep +++ b/phalcon/DataMapper/Pdo/ConnectionLocator.zep @@ -12,10 +12,10 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo; +namespace Phalcon\DataMapper\Pdo; -use Phalcon\DM\Pdo\Connection\ConnectionInterface; -use Phalcon\DM\Pdo\Exception\ConnectionNotFound; +use Phalcon\DataMapper\Pdo\Connection\ConnectionInterface; +use Phalcon\DataMapper\Pdo\Exception\ConnectionNotFound; /** * Manages Connection instances for default, read, and write connections. diff --git a/phalcon/DM/Pdo/ConnectionLocatorInterface.zep b/phalcon/DataMapper/Pdo/ConnectionLocatorInterface.zep similarity index 95% rename from phalcon/DM/Pdo/ConnectionLocatorInterface.zep rename to phalcon/DataMapper/Pdo/ConnectionLocatorInterface.zep index b805ed4bb2b..5197435d615 100644 --- a/phalcon/DM/Pdo/ConnectionLocatorInterface.zep +++ b/phalcon/DataMapper/Pdo/ConnectionLocatorInterface.zep @@ -13,9 +13,9 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo; +namespace Phalcon\DataMapper\Pdo; -use Phalcon\DM\Pdo\Connection\ConnectionInterface; +use Phalcon\DataMapper\Pdo\Connection\ConnectionInterface; /** * Locates PDO connections for default, read, and write databases. diff --git a/phalcon/DM/Pdo/Exception/CannotDisconnect.zep b/phalcon/DataMapper/Pdo/Exception/CannotDisconnect.zep similarity index 93% rename from phalcon/DM/Pdo/Exception/CannotDisconnect.zep rename to phalcon/DataMapper/Pdo/Exception/CannotDisconnect.zep index 78968ada377..68d0518c04f 100644 --- a/phalcon/DM/Pdo/Exception/CannotDisconnect.zep +++ b/phalcon/DataMapper/Pdo/Exception/CannotDisconnect.zep @@ -13,7 +13,7 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Exception; +namespace Phalcon\DataMapper\Pdo\Exception; /** * ExtendedPdo could not disconnect; e.g., because its PDO connection was diff --git a/phalcon/DM/Pdo/Exception/ConnectionNotFound.zep b/phalcon/DataMapper/Pdo/Exception/ConnectionNotFound.zep similarity index 92% rename from phalcon/DM/Pdo/Exception/ConnectionNotFound.zep rename to phalcon/DataMapper/Pdo/Exception/ConnectionNotFound.zep index bc2de8ce92c..9d85a1fc9b3 100644 --- a/phalcon/DM/Pdo/Exception/ConnectionNotFound.zep +++ b/phalcon/DataMapper/Pdo/Exception/ConnectionNotFound.zep @@ -13,7 +13,7 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Exception; +namespace Phalcon\DataMapper\Pdo\Exception; /** * Locator could not find a named connection. diff --git a/phalcon/DM/Pdo/Exception/Exception.zep b/phalcon/DataMapper/Pdo/Exception/Exception.zep similarity index 91% rename from phalcon/DM/Pdo/Exception/Exception.zep rename to phalcon/DataMapper/Pdo/Exception/Exception.zep index 8e439a752c4..8a3061faa67 100644 --- a/phalcon/DM/Pdo/Exception/Exception.zep +++ b/phalcon/DataMapper/Pdo/Exception/Exception.zep @@ -13,7 +13,7 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Exception; +namespace Phalcon\DataMapper\Pdo\Exception; /** * Base Exception class diff --git a/phalcon/DM/Pdo/Profiler/MemoryLogger.zep b/phalcon/DataMapper/Pdo/Profiler/MemoryLogger.zep similarity index 96% rename from phalcon/DM/Pdo/Profiler/MemoryLogger.zep rename to phalcon/DataMapper/Pdo/Profiler/MemoryLogger.zep index a695b137e11..ed2c3f67544 100644 --- a/phalcon/DM/Pdo/Profiler/MemoryLogger.zep +++ b/phalcon/DataMapper/Pdo/Profiler/MemoryLogger.zep @@ -13,7 +13,7 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Profiler; +namespace Phalcon\DataMapper\Pdo\Profiler; use Psr\Log\AbstractLogger; diff --git a/phalcon/DM/Pdo/Profiler/Profiler.zep b/phalcon/DataMapper/Pdo/Profiler/Profiler.zep similarity index 95% rename from phalcon/DM/Pdo/Profiler/Profiler.zep rename to phalcon/DataMapper/Pdo/Profiler/Profiler.zep index 4ae57749838..097258a0cf4 100644 --- a/phalcon/DM/Pdo/Profiler/Profiler.zep +++ b/phalcon/DataMapper/Pdo/Profiler/Profiler.zep @@ -12,9 +12,9 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Profiler; +namespace Phalcon\DataMapper\Pdo\Profiler; -use Phalcon\DM\Pdo\Exception\Exception; +use Phalcon\DataMapper\Pdo\Exception\Exception; use Phalcon\Helper\Json; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; @@ -62,7 +62,7 @@ class Profiler implements ProfilerInterface */ public function __construct( logger = null) { - if null === logger { + if unlikely null === logger { let logger = new MemoryLogger(); } @@ -81,7 +81,7 @@ class Profiler implements ProfilerInterface { var ex, finish, params; - if this->active { + if unlikely this->active { let finish = microtime(true), ex = new Exception(), params = ""; @@ -191,7 +191,7 @@ class Profiler implements ProfilerInterface */ public function start(string method) -> void { - if this->active { + if unlikely this->active { let this->context = [ "method" : method, "start" : microtime(true) diff --git a/phalcon/DM/Pdo/Profiler/ProfilerInterface.zep b/phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.zep similarity index 98% rename from phalcon/DM/Pdo/Profiler/ProfilerInterface.zep rename to phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.zep index b1a0eb1da14..fd6a5ccd15e 100644 --- a/phalcon/DM/Pdo/Profiler/ProfilerInterface.zep +++ b/phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.zep @@ -13,7 +13,7 @@ * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md */ -namespace Phalcon\DM\Pdo\Profiler; +namespace Phalcon\DataMapper\Pdo\Profiler; use Psr\Log\LoggerInterface; diff --git a/tests/_data/fixtures/DM/Pdo/ConnectionFixture.php b/tests/_data/fixtures/DataMapper/Pdo/ConnectionFixture.php similarity index 100% rename from tests/_data/fixtures/DM/Pdo/ConnectionFixture.php rename to tests/_data/fixtures/DataMapper/Pdo/ConnectionFixture.php diff --git a/tests/_data/fixtures/DM/Pdo/PdoFixture.php b/tests/_data/fixtures/DataMapper/Pdo/PdoFixture.php similarity index 100% rename from tests/_data/fixtures/DM/Pdo/PdoFixture.php rename to tests/_data/fixtures/DataMapper/Pdo/PdoFixture.php diff --git a/tests/database/DM/Pdo/Connection/CommitInTransactionRollBackCest.php b/tests/database/DataMapper/Pdo/Connection/CommitInTransactionRollBackCest.php similarity index 84% rename from tests/database/DM/Pdo/Connection/CommitInTransactionRollBackCest.php rename to tests/database/DataMapper/Pdo/Connection/CommitInTransactionRollBackCest.php index 0ccb3e1f975..ca792ac56d9 100644 --- a/tests/database/DM/Pdo/Connection/CommitInTransactionRollBackCest.php +++ b/tests/database/DataMapper/Pdo/Connection/CommitInTransactionRollBackCest.php @@ -9,10 +9,10 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; use function date; @@ -21,16 +21,16 @@ class CommitInTransactionRollBackCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: commit()/inTransaction() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: commit()/inTransaction() * * @since 2020-01-25 */ public function dMPdoConnectionCommitInTransaction(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - commit()/inTransaction()'); + $I->wantToTest('DataMapper\Pdo\Connection - commit()/inTransaction()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); (new InvoicesMigration($connection)); $connection->beginTransaction(); @@ -64,16 +64,16 @@ public function dMPdoConnectionCommitInTransaction(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\Connection :: rollBack() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: rollBack() * * @since 2020-01-25 */ public function dMPdoConnectionRollBack(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - rollBack()'); + $I->wantToTest('DataMapper\Pdo\Connection - rollBack()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); (new InvoicesMigration($connection)); $connection->beginTransaction(); diff --git a/tests/database/DM/Pdo/Connection/ConnectDisconnectIsConnectedCest.php b/tests/database/DataMapper/Pdo/Connection/ConnectDisconnectIsConnectedCest.php similarity index 78% rename from tests/database/DM/Pdo/Connection/ConnectDisconnectIsConnectedCest.php rename to tests/database/DataMapper/Pdo/Connection/ConnectDisconnectIsConnectedCest.php index 16be04b6d3d..e5d75cb95e4 100644 --- a/tests/database/DM/Pdo/Connection/ConnectDisconnectIsConnectedCest.php +++ b/tests/database/DataMapper/Pdo/Connection/ConnectDisconnectIsConnectedCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class ConnectDisconnectIsConnectedCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: + * Database Tests Phalcon\DataMapper\Pdo\Connection :: * connect()/disconnect()/isConnected() * * @since 2020-01-25 */ public function dMPdoConnectionConnectDisconnectIsConnected(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - connect()/disconnect()/isConnected()'); + $I->wantToTest('DataMapper\Pdo\Connection - connect()/disconnect()/isConnected()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $I->assertFalse($connection->isConnected()); $connection->connect(); @@ -37,13 +37,13 @@ public function dMPdoConnectionConnectDisconnectIsConnected(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\Connection :: connect() - queries + * Database Tests Phalcon\DataMapper\Pdo\Connection :: connect() - queries * * @since 2020-01-25 */ public function dMPdoConnectionConnectQueries(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - connect() - queries'); + $I->wantToTest('DataMapper\Pdo\Connection - connect() - queries'); if ('mysql' === $I->getDriver()) { /** @var Connection $connection */ diff --git a/tests/database/DM/Pdo/Connection/ConstructCest.php b/tests/database/DataMapper/Pdo/Connection/ConstructCest.php similarity index 66% rename from tests/database/DM/Pdo/Connection/ConstructCest.php rename to tests/database/DataMapper/Pdo/Connection/ConstructCest.php index f70191fa895..bdbdbab9058 100644 --- a/tests/database/DM/Pdo/Connection/ConstructCest.php +++ b/tests/database/DataMapper/Pdo/Connection/ConstructCest.php @@ -9,37 +9,37 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; use InvalidArgumentException; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class ConstructCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: __construct() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: __construct() * * @since 2020-01-25 */ public function dMPdoConnectionConstruct(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - __construct()'); + $I->wantToTest('DataMapper\Pdo\Connection - __construct()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $I->assertInstanceOf(Connection::class, $connection); } /** - * Database Tests Phalcon\DM\Pdo\Connection :: __construct() - exception + * Database Tests Phalcon\DataMapper\Pdo\Connection :: __construct() - exception * * @since 2020-01-20 */ public function dMPdoConnectionConstructException(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - __construct() - exception'); + $I->wantToTest('DataMapper\Pdo\Connection - __construct() - exception'); $I->expectThrowable( new InvalidArgumentException( diff --git a/tests/database/DM/Pdo/Connection/DebugInfoCest.php b/tests/database/DataMapper/Pdo/Connection/DebugInfoCest.php similarity index 73% rename from tests/database/DM/Pdo/Connection/DebugInfoCest.php rename to tests/database/DataMapper/Pdo/Connection/DebugInfoCest.php index 385c6c22f3f..9368f12e113 100644 --- a/tests/database/DM/Pdo/Connection/DebugInfoCest.php +++ b/tests/database/DataMapper/Pdo/Connection/DebugInfoCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; use PDO; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class DebugInfoCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: __debugInfo() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: __debugInfo() * * @since 2020-01-25 */ public function dMPdoConnectionDebugInfo(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - __debugInfo()'); + $I->wantToTest('DataMapper\Pdo\Connection - __debugInfo()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $expected = [ 'arguments' => [ diff --git a/tests/database/DM/Pdo/Connection/Decorated/ConstructCest.php b/tests/database/DataMapper/Pdo/Connection/Decorated/ConstructCest.php similarity index 71% rename from tests/database/DM/Pdo/Connection/Decorated/ConstructCest.php rename to tests/database/DataMapper/Pdo/Connection/Decorated/ConstructCest.php index 98468a2e90b..e63ade9e527 100644 --- a/tests/database/DM/Pdo/Connection/Decorated/ConstructCest.php +++ b/tests/database/DataMapper/Pdo/Connection/Decorated/ConstructCest.php @@ -9,23 +9,23 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection\Decorated; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection\Decorated; use DatabaseTester; use PDO; -use Phalcon\DM\Pdo\Connection\Decorated; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Connection\Decorated; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; class ConstructCest { /** - * Database Tests Phalcon\DM\Pdo\Connection\Decorated :: __construct() + * Database Tests Phalcon\DataMapper\Pdo\Connection\Decorated :: __construct() * * @since 2020-01-25 */ public function dMPdoConnectionDecoratedConstruct(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection\Decorated - __construct()'); + $I->wantToTest('DataMapper\Pdo\Connection\Decorated - __construct()'); $connection = new PDO( $I->getDatabaseDsn(), diff --git a/tests/database/DM/Pdo/Connection/Decorated/DisconnectCest.php b/tests/database/DataMapper/Pdo/Connection/Decorated/DisconnectCest.php similarity index 73% rename from tests/database/DM/Pdo/Connection/Decorated/DisconnectCest.php rename to tests/database/DataMapper/Pdo/Connection/Decorated/DisconnectCest.php index cd06fcccb27..57738b9d252 100644 --- a/tests/database/DM/Pdo/Connection/Decorated/DisconnectCest.php +++ b/tests/database/DataMapper/Pdo/Connection/Decorated/DisconnectCest.php @@ -9,23 +9,23 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection\Decorated; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection\Decorated; use DatabaseTester; use PDO; -use Phalcon\DM\Pdo\Connection\Decorated; -use Phalcon\DM\Pdo\Exception\CannotDisconnect; +use Phalcon\DataMapper\Pdo\Connection\Decorated; +use Phalcon\DataMapper\Pdo\Exception\CannotDisconnect; class DisconnectCest { /** - * Database Tests Phalcon\DM\Pdo\Connection\Decorated :: disconnect() + * Database Tests Phalcon\DataMapper\Pdo\Connection\Decorated :: disconnect() * * @since 2020-01-25 */ public function dMPdoConnectionDecoratedDisconnect(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection\Decorated - disconnect()'); + $I->wantToTest('DataMapper\Pdo\Connection\Decorated - disconnect()'); $I->expectThrowable( new CannotDisconnect( diff --git a/tests/database/DM/Pdo/Connection/ErrorCodeCest.php b/tests/database/DataMapper/Pdo/Connection/ErrorCodeCest.php similarity index 64% rename from tests/database/DM/Pdo/Connection/ErrorCodeCest.php rename to tests/database/DataMapper/Pdo/Connection/ErrorCodeCest.php index a14dd6ff35f..6745222835b 100644 --- a/tests/database/DM/Pdo/Connection/ErrorCodeCest.php +++ b/tests/database/DataMapper/Pdo/Connection/ErrorCodeCest.php @@ -9,24 +9,24 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class ErrorCodeCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: errorCode() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: errorCode() * * @since 2020-01-25 */ public function dMPdoConnectionErrorCode(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - errorCode()'); + $I->wantToTest('DataMapper\Pdo\Connection - errorCode()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $actual = $connection->errorCode(); $I->assertEquals('', $actual); diff --git a/tests/database/DM/Pdo/Connection/ErrorInfoCest.php b/tests/database/DataMapper/Pdo/Connection/ErrorInfoCest.php similarity index 66% rename from tests/database/DM/Pdo/Connection/ErrorInfoCest.php rename to tests/database/DataMapper/Pdo/Connection/ErrorInfoCest.php index f62de74770f..16518d9973e 100644 --- a/tests/database/DM/Pdo/Connection/ErrorInfoCest.php +++ b/tests/database/DataMapper/Pdo/Connection/ErrorInfoCest.php @@ -9,24 +9,24 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class ErrorInfoCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: errorInfo() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: errorInfo() * * @since 2020-01-25 */ public function dMPdoConnectionErrorInfo(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - errorInfo()'); + $I->wantToTest('DataMapper\Pdo\Connection - errorInfo()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $actual = $connection->errorInfo(); $expect = ['', null, null]; diff --git a/tests/database/DM/Pdo/Connection/ExecCest.php b/tests/database/DataMapper/Pdo/Connection/ExecCest.php similarity index 78% rename from tests/database/DM/Pdo/Connection/ExecCest.php rename to tests/database/DataMapper/Pdo/Connection/ExecCest.php index 29879587129..92f57c75e18 100644 --- a/tests/database/DM/Pdo/Connection/ExecCest.php +++ b/tests/database/DataMapper/Pdo/Connection/ExecCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class ExecCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: exec() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: exec() * * @since 2020-01-25 */ public function dMPdoConnectionExec(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - exec()'); + $I->wantToTest('DataMapper\Pdo\Connection - exec()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchAffectedCest.php b/tests/database/DataMapper/Pdo/Connection/FetchAffectedCest.php similarity index 77% rename from tests/database/DM/Pdo/Connection/FetchAffectedCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchAffectedCest.php index c5692deb54e..694db76d17a 100644 --- a/tests/database/DM/Pdo/Connection/FetchAffectedCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchAffectedCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchAffectedCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchAffected() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchAffected() * * @since 2020-01-25 */ public function dMPdoConnectionFetchAffected(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchAffected()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchAffected()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchAllCest.php b/tests/database/DataMapper/Pdo/Connection/FetchAllCest.php similarity index 80% rename from tests/database/DM/Pdo/Connection/FetchAllCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchAllCest.php index cfe9af6806f..7a89c5c57bf 100644 --- a/tests/database/DM/Pdo/Connection/FetchAllCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchAllCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchAllCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchAll() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchAll() * * @since 2020-01-25 */ public function dMPdoConnectionFetchAll(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchAll()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchAll()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchAssocCest.php b/tests/database/DataMapper/Pdo/Connection/FetchAssocCest.php similarity index 80% rename from tests/database/DM/Pdo/Connection/FetchAssocCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchAssocCest.php index cc3915501c1..5b7eda72fd9 100644 --- a/tests/database/DM/Pdo/Connection/FetchAssocCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchAssocCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchAssocCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchAssoc() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchAssoc() * * @since 2020-01-25 */ public function dMPdoConnectionFetchAssoc(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchAssoc()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchAssoc()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchColumnCest.php b/tests/database/DataMapper/Pdo/Connection/FetchColumnCest.php similarity index 84% rename from tests/database/DM/Pdo/Connection/FetchColumnCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchColumnCest.php index f1552f88341..db704f15f79 100644 --- a/tests/database/DM/Pdo/Connection/FetchColumnCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchColumnCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchColumnCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchColumn() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchColumn() * * @since 2020-01-25 */ public function dMPdoConnectionFetchCol(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchColumn()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchColumn()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchGroupCest.php b/tests/database/DataMapper/Pdo/Connection/FetchGroupCest.php similarity index 81% rename from tests/database/DM/Pdo/Connection/FetchGroupCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchGroupCest.php index 346f114147d..18a561fa7a2 100644 --- a/tests/database/DM/Pdo/Connection/FetchGroupCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchGroupCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchGroupCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchGroup() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchGroup() * * @since 2020-01-25 */ public function dMPdoConnectionFetchGroup(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchGroup()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchGroup()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchObjectCest.php b/tests/database/DataMapper/Pdo/Connection/FetchObjectCest.php similarity index 79% rename from tests/database/DM/Pdo/Connection/FetchObjectCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchObjectCest.php index eab6674d243..1cde45a37f6 100644 --- a/tests/database/DM/Pdo/Connection/FetchObjectCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchObjectCest.php @@ -9,10 +9,10 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; use Phalcon\Test\Fixtures\Resultset; use stdClass; @@ -20,16 +20,16 @@ class FetchObjectCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchObject() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchObject() * * @since 2020-01-25 */ public function dMPdoConnectionFetchObject(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchObject()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchObject()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); @@ -49,16 +49,16 @@ public function dMPdoConnectionFetchObject(DatabaseTester $I) } /** - * Tests Phalcon\DM\Pdo\Connection :: fetchObject() - ctor + * Tests Phalcon\DataMapper\Pdo\Connection :: fetchObject() - ctor * * @since 2020-01-25 */ public function connectionFetchObjectCtor(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchObject() - ctor'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchObject() - ctor'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchObjectsCest.php b/tests/database/DataMapper/Pdo/Connection/FetchObjectsCest.php similarity index 85% rename from tests/database/DM/Pdo/Connection/FetchObjectsCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchObjectsCest.php index 57117ea0c8b..685b489f041 100644 --- a/tests/database/DM/Pdo/Connection/FetchObjectsCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchObjectsCest.php @@ -9,10 +9,10 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; use Phalcon\Test\Fixtures\Resultset; use stdClass; @@ -20,16 +20,16 @@ class FetchObjectsCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchObjects() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchObjects() * * @since 2020-01-25 */ public function dMPdoConnectionFetchObjects(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchObjects()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchObjects()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); @@ -59,16 +59,16 @@ public function dMPdoConnectionFetchObjects(DatabaseTester $I) } /** - * Tests Phalcon\DM\Pdo\Connection :: fetchObjects() - ctor + * Tests Phalcon\DataMapper\Pdo\Connection :: fetchObjects() - ctor * * @since 2020-01-25 */ public function connectionFetchObjectsCtor(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchObjects() - ctor'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchObjects() - ctor'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchOneCest.php b/tests/database/DataMapper/Pdo/Connection/FetchOneCest.php similarity index 84% rename from tests/database/DM/Pdo/Connection/FetchOneCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchOneCest.php index 544d8ff9ea4..44e4f7b51e5 100644 --- a/tests/database/DM/Pdo/Connection/FetchOneCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchOneCest.php @@ -9,27 +9,27 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use Codeception\Example; use DatabaseTester; use PDO; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchOneCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchOne() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchOne() * * @since 2020-01-25 */ public function dMPdoConnectionFetchOne(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchOne()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchOne()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); @@ -54,16 +54,16 @@ public function dMPdoConnectionFetchOne(DatabaseTester $I) } /** - * Tests Phalcon\DM\Pdo\Connection :: fetchOne() - no result + * Tests Phalcon\DataMapper\Pdo\Connection :: fetchOne() - no result * * @since 2020-01-25 */ public function dMPdoConnectionFetchOneNoResult(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchOne() - no result'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchOne() - no result'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); @@ -82,17 +82,17 @@ public function dMPdoConnectionFetchOneNoResult(DatabaseTester $I) } /** - * Tests Phalcon\DM\Pdo\Connection :: fetchOne() - bind types + * Tests Phalcon\DataMapper\Pdo\Connection :: fetchOne() - bind types * * @dataProvider getBindTypes * @since 2020-01-25 */ public function dMPdoConnectionFetchOneBindTypes(DatabaseTester $I, Example $example) { - $I->wantToTest('DM\Pdo\Connection - fetchOne() - bind types - ' . $example[0]); + $I->wantToTest('DataMapper\Pdo\Connection - fetchOne() - bind types - ' . $example[0]); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchPairsCest.php b/tests/database/DataMapper/Pdo/Connection/FetchPairsCest.php similarity index 81% rename from tests/database/DM/Pdo/Connection/FetchPairsCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchPairsCest.php index 56165e41382..075fab4a6a3 100644 --- a/tests/database/DM/Pdo/Connection/FetchPairsCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchPairsCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchPairsCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchPairs() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchPairs() * * @since 2020-01-25 */ public function dMPdoConnectionFetchPairs(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchPairs()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchPairs()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/FetchValueCest.php b/tests/database/DataMapper/Pdo/Connection/FetchValueCest.php similarity index 75% rename from tests/database/DM/Pdo/Connection/FetchValueCest.php rename to tests/database/DataMapper/Pdo/Connection/FetchValueCest.php index 8a0b684e18c..bd202fde51f 100644 --- a/tests/database/DM/Pdo/Connection/FetchValueCest.php +++ b/tests/database/DataMapper/Pdo/Connection/FetchValueCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class FetchValueCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: fetchValue() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: fetchValue() * * @since 2020-01-25 */ public function dMPdoConnectionFetchValue(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - fetchValue()'); + $I->wantToTest('DataMapper\Pdo\Connection - fetchValue()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/GetAdapterCest.php b/tests/database/DataMapper/Pdo/Connection/GetAdapterCest.php similarity index 74% rename from tests/database/DM/Pdo/Connection/GetAdapterCest.php rename to tests/database/DataMapper/Pdo/Connection/GetAdapterCest.php index 099ae373cff..b06a618e3af 100644 --- a/tests/database/DM/Pdo/Connection/GetAdapterCest.php +++ b/tests/database/DataMapper/Pdo/Connection/GetAdapterCest.php @@ -9,24 +9,24 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class GetAdapterCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: getAdapter() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: getAdapter() * * @since 2020-01-25 */ public function dMPdoConnectionGetAdapter(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - getAdapter()'); + $I->wantToTest('DataMapper\Pdo\Connection - getAdapter()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $I->assertFalse($connection->isConnected()); diff --git a/tests/database/DM/Pdo/Connection/GetAvailableDriversCest.php b/tests/database/DataMapper/Pdo/Connection/GetAvailableDriversCest.php similarity index 66% rename from tests/database/DM/Pdo/Connection/GetAvailableDriversCest.php rename to tests/database/DataMapper/Pdo/Connection/GetAvailableDriversCest.php index 7b9c0fa3fd4..c47ef9d0101 100644 --- a/tests/database/DM/Pdo/Connection/GetAvailableDriversCest.php +++ b/tests/database/DataMapper/Pdo/Connection/GetAvailableDriversCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; use PDO; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class GetAvailableDriversCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: getAvailableDrivers() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: getAvailableDrivers() * * @since 2020-01-25 */ public function dMPdoConnectionGetAvailableDrivers(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - getAvailableDrivers()'); + $I->wantToTest('DataMapper\Pdo\Connection - getAvailableDrivers()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $expected = PDO::getAvailableDrivers(); $actual = $connection::getAvailableDrivers(); diff --git a/tests/database/DM/Pdo/Connection/GetQuoteNamesCest.php b/tests/database/DataMapper/Pdo/Connection/GetQuoteNamesCest.php similarity index 80% rename from tests/database/DM/Pdo/Connection/GetQuoteNamesCest.php rename to tests/database/DataMapper/Pdo/Connection/GetQuoteNamesCest.php index 910fc3e44d8..5e266e039e2 100644 --- a/tests/database/DM/Pdo/Connection/GetQuoteNamesCest.php +++ b/tests/database/DataMapper/Pdo/Connection/GetQuoteNamesCest.php @@ -9,24 +9,24 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class GetQuoteNamesCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: getQuoteNames() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: getQuoteNames() * * @since 2020-01-20 */ public function dMPdoConnectionGetQuoteNames(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - getQuoteNames()'); + $I->wantToTest('DataMapper\Pdo\Connection - getQuoteNames()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $mysql = [ "prefix" => '`', diff --git a/tests/database/DM/Pdo/Connection/GetSetAttributeCest.php b/tests/database/DataMapper/Pdo/Connection/GetSetAttributeCest.php similarity index 74% rename from tests/database/DM/Pdo/Connection/GetSetAttributeCest.php rename to tests/database/DataMapper/Pdo/Connection/GetSetAttributeCest.php index 9dc1e53e7b3..3b328a08d97 100644 --- a/tests/database/DM/Pdo/Connection/GetSetAttributeCest.php +++ b/tests/database/DataMapper/Pdo/Connection/GetSetAttributeCest.php @@ -9,26 +9,26 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; use PDO; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class GetSetAttributeCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: + * Database Tests Phalcon\DataMapper\Pdo\Connection :: * getAttribute()/setAttribute() * * @since 2020-01-25 */ public function dMPdoConnectionGetSetAttribute(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - getAttribute()/setAttribute()'); + $I->wantToTest('DataMapper\Pdo\Connection - getAttribute()/setAttribute()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $I->assertEquals( PDO::ERRMODE_EXCEPTION, diff --git a/tests/database/DM/Pdo/Connection/GetSetProfilerCest.php b/tests/database/DataMapper/Pdo/Connection/GetSetProfilerCest.php similarity index 67% rename from tests/database/DM/Pdo/Connection/GetSetProfilerCest.php rename to tests/database/DataMapper/Pdo/Connection/GetSetProfilerCest.php index 21d0616ff62..89252c7c728 100644 --- a/tests/database/DM/Pdo/Connection/GetSetProfilerCest.php +++ b/tests/database/DataMapper/Pdo/Connection/GetSetProfilerCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; class GetSetProfilerCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: getProfiler() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: getProfiler() * * @since 2020-01-25 */ public function dMPdoConnectionGetProfiler(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - getProfiler()'); + $I->wantToTest('DataMapper\Pdo\Connection - getProfiler()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $I->assertInstanceOf( Profiler::class, diff --git a/tests/database/DM/Pdo/Connection/LastInsertIdCest.php b/tests/database/DataMapper/Pdo/Connection/LastInsertIdCest.php similarity index 81% rename from tests/database/DM/Pdo/Connection/LastInsertIdCest.php rename to tests/database/DataMapper/Pdo/Connection/LastInsertIdCest.php index 73b6654672d..0b4d5d43721 100644 --- a/tests/database/DM/Pdo/Connection/LastInsertIdCest.php +++ b/tests/database/DataMapper/Pdo/Connection/LastInsertIdCest.php @@ -9,10 +9,10 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; use function date; @@ -22,16 +22,16 @@ class LastInsertIdCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: lastInsertId() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: lastInsertId() * * @since 2020-01-25 */ public function dMPdoConnectionLastInsertId(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - lastInsertId()'); + $I->wantToTest('DataMapper\Pdo\Connection - lastInsertId()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/QueryCest.php b/tests/database/DataMapper/Pdo/Connection/QueryCest.php similarity index 80% rename from tests/database/DM/Pdo/Connection/QueryCest.php rename to tests/database/DataMapper/Pdo/Connection/QueryCest.php index 7de205d09e5..cc266bb404d 100644 --- a/tests/database/DM/Pdo/Connection/QueryCest.php +++ b/tests/database/DataMapper/Pdo/Connection/QueryCest.php @@ -9,25 +9,25 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; use Phalcon\Test\Fixtures\Migrations\InvoicesMigration; class QueryCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: query() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: query() * * @since 2020-01-25 */ public function dMPdoConnectionQuery(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - query()'); + $I->wantToTest('DataMapper\Pdo\Connection - query()'); /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $migration = new InvoicesMigration($connection); $migration->clear(); diff --git a/tests/database/DM/Pdo/Connection/QuoteCest.php b/tests/database/DataMapper/Pdo/Connection/QuoteCest.php similarity index 83% rename from tests/database/DM/Pdo/Connection/QuoteCest.php rename to tests/database/DataMapper/Pdo/Connection/QuoteCest.php index 1601803db3d..3876573c937 100644 --- a/tests/database/DM/Pdo/Connection/QuoteCest.php +++ b/tests/database/DataMapper/Pdo/Connection/QuoteCest.php @@ -9,22 +9,22 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; +use Phalcon\DataMapper\Pdo\Connection; class QuoteCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: quote() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: quote() * * @since 2020-01-25 */ public function dMPdoConnectionQuote(DatabaseTester $I) { /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $quotes = $connection->getQuoteNames(); $source = 'test'; diff --git a/tests/database/DM/Pdo/Connection/UnderscoreCallCest.php b/tests/database/DataMapper/Pdo/Connection/UnderscoreCallCest.php similarity index 65% rename from tests/database/DM/Pdo/Connection/UnderscoreCallCest.php rename to tests/database/DataMapper/Pdo/Connection/UnderscoreCallCest.php index fb6e1b50163..3894753bce5 100644 --- a/tests/database/DM/Pdo/Connection/UnderscoreCallCest.php +++ b/tests/database/DataMapper/Pdo/Connection/UnderscoreCallCest.php @@ -9,23 +9,23 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Connection; +namespace Phalcon\Test\Database\DataMapper\Pdo\Connection; use BadMethodCallException; use DatabaseTester; -use Phalcon\DM\Pdo\Connection; -use Phalcon\Test\Fixtures\DM\Pdo\ConnectionFixture; +use Phalcon\DataMapper\Pdo\Connection; +use Phalcon\Test\Fixtures\DataMapper\Pdo\ConnectionFixture; class UnderscoreCallCest { /** - * Database Tests Phalcon\DM\Pdo\Connection :: __call() + * Database Tests Phalcon\DataMapper\Pdo\Connection :: __call() * * @since 2020-01-25 */ public function dMPdoConnectionUnderscoreCall(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - __call()'); + $I->wantToTest('DataMapper\Pdo\Connection - __call()'); /** @var Connection $connection */ $connection = new ConnectionFixture( @@ -39,21 +39,21 @@ public function dMPdoConnectionUnderscoreCall(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\Connection :: __call() - exception + * Database Tests Phalcon\DataMapper\Pdo\Connection :: __call() - exception * * @since 2020-01-25 */ public function dMPdoConnectionUnderscoreCallException(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Connection - __call() - exception'); + $I->wantToTest('DataMapper\Pdo\Connection - __call() - exception'); $I->expectThrowable( new BadMethodCallException( - "Class 'Phalcon\DM\Pdo\Connection' does not have a method 'unknown'" + "Class 'Phalcon\DataMapper\Pdo\Connection' does not have a method 'unknown'" ), function () use ($I) { /** @var Connection $connection */ - $connection = $I->getDMConnection(); + $connection = $I->getDataMapperConnection(); $connection->unknown(); } diff --git a/tests/database/DM/Pdo/ConnectionLocator/ConstructCest.php b/tests/database/DataMapper/Pdo/ConnectionLocator/ConstructCest.php similarity index 64% rename from tests/database/DM/Pdo/ConnectionLocator/ConstructCest.php rename to tests/database/DataMapper/Pdo/ConnectionLocator/ConstructCest.php index 6b166136282..8996d389197 100644 --- a/tests/database/DM/Pdo/ConnectionLocator/ConstructCest.php +++ b/tests/database/DataMapper/Pdo/ConnectionLocator/ConstructCest.php @@ -9,24 +9,24 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\ConnectionLocator; +namespace Phalcon\Test\Database\DataMapper\Pdo\ConnectionLocator; use DatabaseTester; -use Phalcon\DM\Pdo\ConnectionLocator; -use Phalcon\DM\Pdo\ConnectionLocatorInterface; +use Phalcon\DataMapper\Pdo\ConnectionLocator; +use Phalcon\DataMapper\Pdo\ConnectionLocatorInterface; class ConstructCest { /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: __construct() + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: __construct() * * @since 2020-01-25 */ public function dMPdoConnectionLocatorConstruct(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - __construct()'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - __construct()'); - $connection1 = $I->getDMConnection(); + $connection1 = $I->getDataMapperConnection(); $locator = new ConnectionLocator( function () use ($connection1) { return $connection1; diff --git a/tests/database/DM/Pdo/ConnectionLocator/GetSetMasterCest.php b/tests/database/DataMapper/Pdo/ConnectionLocator/GetSetMasterCest.php similarity index 68% rename from tests/database/DM/Pdo/ConnectionLocator/GetSetMasterCest.php rename to tests/database/DataMapper/Pdo/ConnectionLocator/GetSetMasterCest.php index 0f0505d8009..8247a7ad13b 100644 --- a/tests/database/DM/Pdo/ConnectionLocator/GetSetMasterCest.php +++ b/tests/database/DataMapper/Pdo/ConnectionLocator/GetSetMasterCest.php @@ -9,27 +9,27 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\ConnectionLocator; +namespace Phalcon\Test\Database\DataMapper\Pdo\ConnectionLocator; use DatabaseTester; -use Phalcon\DM\Pdo\ConnectionLocator; +use Phalcon\DataMapper\Pdo\ConnectionLocator; use function spl_object_hash; class GetSetMasterCest { /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: * getMaster()/setMaster() * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetSetMaster(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getMaster()/setMaster()'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getMaster()/setMaster()'); - $connection1 = $I->getDMConnection(); - $connection2 = $I->getDMConnection(); + $connection1 = $I->getDataMapperConnection(); + $connection2 = $I->getDataMapperConnection(); $locator = new ConnectionLocator($connection1); $actual = $locator->getMaster(); diff --git a/tests/database/DM/Pdo/ConnectionLocator/GetSetReadCest.php b/tests/database/DataMapper/Pdo/ConnectionLocator/GetSetReadCest.php similarity index 67% rename from tests/database/DM/Pdo/ConnectionLocator/GetSetReadCest.php rename to tests/database/DataMapper/Pdo/ConnectionLocator/GetSetReadCest.php index 5c36c280122..314f1e95720 100644 --- a/tests/database/DM/Pdo/ConnectionLocator/GetSetReadCest.php +++ b/tests/database/DataMapper/Pdo/ConnectionLocator/GetSetReadCest.php @@ -9,11 +9,11 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\ConnectionLocator; +namespace Phalcon\Test\Database\DataMapper\Pdo\ConnectionLocator; use DatabaseTester; -use Phalcon\DM\Pdo\ConnectionLocator; -use Phalcon\DM\Pdo\Exception\ConnectionNotFound; +use Phalcon\DataMapper\Pdo\ConnectionLocator; +use Phalcon\DataMapper\Pdo\Exception\ConnectionNotFound; use function in_array; use function spl_object_hash; @@ -21,17 +21,17 @@ class GetSetReadCest { /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: getRead()/setRead() + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: getRead()/setRead() * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetSetRead(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getRead()/setRead()'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getRead()/setRead()'); - $master = $I->getDMConnection(); - $read1 = $I->getDMConnection(); - $read2 = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); + $read1 = $I->getDataMapperConnection(); + $read2 = $I->getDataMapperConnection(); $locator = new ConnectionLocator( $master, [ @@ -52,17 +52,17 @@ public function dMPdoConnectionLocatorGetSetRead(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: getRead() - random + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: getRead() - random * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetReadRandom(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getRead() - random'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getRead() - random'); - $master = $I->getDMConnection(); - $read1 = $I->getDMConnection(); - $read2 = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); + $read1 = $I->getDataMapperConnection(); + $read2 = $I->getDataMapperConnection(); $locator = new ConnectionLocator( $master, [ @@ -85,15 +85,15 @@ public function dMPdoConnectionLocatorGetReadRandom(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: getRead() - empty + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: getRead() - empty * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetReadEmpty(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getRead() - empty'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getRead() - empty'); - $master = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); $locator = new ConnectionLocator($master); $actual = $locator->getRead("read1"); @@ -101,22 +101,22 @@ public function dMPdoConnectionLocatorGetReadEmpty(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: getRead() - + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: getRead() - * exception * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetReadException(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getRead() - exception'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getRead() - exception'); $I->expectThrowable( new ConnectionNotFound( "Connection not found: read:unknown" ), function () use ($I) { - $master = $I->getDMConnection(); - $read1 = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); + $read1 = $I->getDataMapperConnection(); $locator = new ConnectionLocator( $master, [ diff --git a/tests/database/DM/Pdo/ConnectionLocator/GetSetWriteCest.php b/tests/database/DataMapper/Pdo/ConnectionLocator/GetSetWriteCest.php similarity index 68% rename from tests/database/DM/Pdo/ConnectionLocator/GetSetWriteCest.php rename to tests/database/DataMapper/Pdo/ConnectionLocator/GetSetWriteCest.php index b48d52ca111..0f5a7d4ac72 100644 --- a/tests/database/DM/Pdo/ConnectionLocator/GetSetWriteCest.php +++ b/tests/database/DataMapper/Pdo/ConnectionLocator/GetSetWriteCest.php @@ -9,11 +9,11 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\ConnectionLocator; +namespace Phalcon\Test\Database\DataMapper\Pdo\ConnectionLocator; use DatabaseTester; -use Phalcon\DM\Pdo\ConnectionLocator; -use Phalcon\DM\Pdo\Exception\ConnectionNotFound; +use Phalcon\DataMapper\Pdo\ConnectionLocator; +use Phalcon\DataMapper\Pdo\Exception\ConnectionNotFound; use function in_array; use function spl_object_hash; @@ -21,18 +21,18 @@ class GetSetWriteCest { /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: * getWrite()/setWrite() * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetSetWrite(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getWrite()/setWrite()'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getWrite()/setWrite()'); - $master = $I->getDMConnection(); - $write1 = $I->getDMConnection(); - $write2 = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); + $write1 = $I->getDataMapperConnection(); + $write2 = $I->getDataMapperConnection(); $locator = new ConnectionLocator( $master, [], @@ -54,17 +54,17 @@ public function dMPdoConnectionLocatorGetSetWrite(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: getWrite() - random + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: getWrite() - random * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetWriteRandom(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getWrite() - random'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getWrite() - random'); - $master = $I->getDMConnection(); - $write1 = $I->getDMConnection(); - $write2 = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); + $write1 = $I->getDataMapperConnection(); + $write2 = $I->getDataMapperConnection(); $locator = new ConnectionLocator( $master, [], @@ -88,15 +88,15 @@ public function dMPdoConnectionLocatorGetWriteRandom(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: getWrite() - empty + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: getWrite() - empty * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetWriteEmpty(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getWrite() - empty'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getWrite() - empty'); - $master = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); $locator = new ConnectionLocator($master); $actual = $locator->getWrite("write1"); @@ -104,22 +104,22 @@ public function dMPdoConnectionLocatorGetWriteEmpty(DatabaseTester $I) } /** - * Database Tests Phalcon\DM\Pdo\ConnectionLocator :: getWrite() - + * Database Tests Phalcon\DataMapper\Pdo\ConnectionLocator :: getWrite() - * exception * * @since 2020-01-25 */ public function dMPdoConnectionLocatorGetWriteException(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\ConnectionLocator - getWrite() - exception'); + $I->wantToTest('DataMapper\Pdo\ConnectionLocator - getWrite() - exception'); $I->expectThrowable( new ConnectionNotFound( "Connection not found: write:unknown" ), function () use ($I) { - $master = $I->getDMConnection(); - $write1 = $I->getDMConnection(); + $master = $I->getDataMapperConnection(); + $write1 = $I->getDataMapperConnection(); $locator = new ConnectionLocator( $master, [], diff --git a/tests/database/DM/Pdo/Profiler/MemoryLogger/LevelsCest.php b/tests/database/DataMapper/Pdo/Profiler/MemoryLogger/LevelsCest.php similarity index 82% rename from tests/database/DM/Pdo/Profiler/MemoryLogger/LevelsCest.php rename to tests/database/DataMapper/Pdo/Profiler/MemoryLogger/LevelsCest.php index bc135ffd648..766321b7178 100644 --- a/tests/database/DM/Pdo/Profiler/MemoryLogger/LevelsCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/MemoryLogger/LevelsCest.php @@ -9,23 +9,23 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\MemoryLogger; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\MemoryLogger; use Codeception\Example; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\MemoryLogger; +use Phalcon\DataMapper\Pdo\Profiler\MemoryLogger; class LevelsCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\MemoryLogger :: + * Database Tests Phalcon\DataMapper\Pdo\Profiler\MemoryLogger :: * * @dataProvider getExamples * @since 2020-01-25 */ public function dMPdoProfilerMemoryLoggerLevels(DatabaseTester $I, Example $example) { - $I->wantToTest('DM\Pdo\Profiler\MemoryLogger - ' . $example[0]); + $I->wantToTest('DataMapper\Pdo\Profiler\MemoryLogger - ' . $example[0]); $logger = new MemoryLogger(); diff --git a/tests/database/DM/Pdo/Profiler/MemoryLogger/LogCest.php b/tests/database/DataMapper/Pdo/Profiler/MemoryLogger/LogCest.php similarity index 78% rename from tests/database/DM/Pdo/Profiler/MemoryLogger/LogCest.php rename to tests/database/DataMapper/Pdo/Profiler/MemoryLogger/LogCest.php index a56d1923b15..78ecedd8d30 100644 --- a/tests/database/DM/Pdo/Profiler/MemoryLogger/LogCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/MemoryLogger/LogCest.php @@ -9,22 +9,22 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\MemoryLogger; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\MemoryLogger; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\MemoryLogger; +use Phalcon\DataMapper\Pdo\Profiler\MemoryLogger; use Psr\Log\LogLevel; class LogCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\MemoryLogger :: log() + * Database Tests Phalcon\DataMapper\Pdo\Profiler\MemoryLogger :: log() * * @since 2020-01-25 */ public function dMPdoProfilerMemoryLoggerLog(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Profiler\MemoryLogger - log()'); + $I->wantToTest('DataMapper\Pdo\Profiler\MemoryLogger - log()'); $logger = new MemoryLogger(); diff --git a/tests/database/DM/Pdo/Profiler/Profiler/ConstructCest.php b/tests/database/DataMapper/Pdo/Profiler/Profiler/ConstructCest.php similarity index 64% rename from tests/database/DM/Pdo/Profiler/Profiler/ConstructCest.php rename to tests/database/DataMapper/Pdo/Profiler/Profiler/ConstructCest.php index 13e7901251c..f3cd0bc4c91 100644 --- a/tests/database/DM/Pdo/Profiler/Profiler/ConstructCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/Profiler/ConstructCest.php @@ -9,21 +9,21 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\Profiler; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\Profiler; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; class ConstructCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\Profiler :: __construct() + * Database Tests Phalcon\DataMapper\Pdo\Profiler\Profiler :: __construct() * * @since 2020-01-25 */ public function dMPdoProfilerProfilerConstruct(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Profiler\Profiler - __construct()'); + $I->wantToTest('DataMapper\Pdo\Profiler\Profiler - __construct()'); $profiler = new Profiler(); diff --git a/tests/database/DM/Pdo/Profiler/Profiler/GetLoggerCest.php b/tests/database/DataMapper/Pdo/Profiler/Profiler/GetLoggerCest.php similarity index 71% rename from tests/database/DM/Pdo/Profiler/Profiler/GetLoggerCest.php rename to tests/database/DataMapper/Pdo/Profiler/Profiler/GetLoggerCest.php index 615479bf151..e848c32819c 100644 --- a/tests/database/DM/Pdo/Profiler/Profiler/GetLoggerCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/Profiler/GetLoggerCest.php @@ -9,22 +9,22 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\Profiler; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\Profiler; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\MemoryLogger; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\MemoryLogger; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; class GetLoggerCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\Profiler :: getLogger() + * Database Tests Phalcon\DataMapper\Pdo\Profiler\Profiler :: getLogger() * * @since 2020-01-25 */ public function dMPdoProfilerProfilerGetLogger(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Profiler\Profiler - getLogger()'); + $I->wantToTest('DataMapper\Pdo\Profiler\Profiler - getLogger()'); $profile = new Profiler(); $logger = $profile->getLogger(); diff --git a/tests/database/DM/Pdo/Profiler/Profiler/GetSetLogFormatCest.php b/tests/database/DataMapper/Pdo/Profiler/Profiler/GetSetLogFormatCest.php similarity index 75% rename from tests/database/DM/Pdo/Profiler/Profiler/GetSetLogFormatCest.php rename to tests/database/DataMapper/Pdo/Profiler/Profiler/GetSetLogFormatCest.php index 7f272cc11f0..310dc0956d6 100644 --- a/tests/database/DM/Pdo/Profiler/Profiler/GetSetLogFormatCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/Profiler/GetSetLogFormatCest.php @@ -9,22 +9,22 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\Profiler; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\Profiler; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; class GetSetLogFormatCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\Profiler :: + * Database Tests Phalcon\DataMapper\Pdo\Profiler\Profiler :: * getLogFormat()/setLogFormat() * * @since 2020-01-25 */ public function dMPdoProfilerProfilerGetSetLogFormat(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Profiler\Profiler - getLogFormat()/setLogFormat()'); + $I->wantToTest('DataMapper\Pdo\Profiler\Profiler - getLogFormat()/setLogFormat()'); $profiler = new Profiler(); diff --git a/tests/database/DM/Pdo/Profiler/Profiler/GetSetLogLevelCest.php b/tests/database/DataMapper/Pdo/Profiler/Profiler/GetSetLogLevelCest.php similarity index 73% rename from tests/database/DM/Pdo/Profiler/Profiler/GetSetLogLevelCest.php rename to tests/database/DataMapper/Pdo/Profiler/Profiler/GetSetLogLevelCest.php index 235e0da1771..e5348d900b5 100644 --- a/tests/database/DM/Pdo/Profiler/Profiler/GetSetLogLevelCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/Profiler/GetSetLogLevelCest.php @@ -9,23 +9,23 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\Profiler; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\Profiler; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; use Psr\Log\LogLevel; class GetSetLogLevelCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\Profiler :: + * Database Tests Phalcon\DataMapper\Pdo\Profiler\Profiler :: * getLogLevel()/setLogLevel() * * @since 2020-01-25 */ public function dMPdoProfilerProfilerGetSetLogLevel(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Profiler\Profiler - getLogLevel()/setLogLevel()'); + $I->wantToTest('DataMapper\Pdo\Profiler\Profiler - getLogLevel()/setLogLevel()'); $profiler = new Profiler(); diff --git a/tests/database/DM/Pdo/Profiler/Profiler/IsSetActiveCest.php b/tests/database/DataMapper/Pdo/Profiler/Profiler/IsSetActiveCest.php similarity index 69% rename from tests/database/DM/Pdo/Profiler/Profiler/IsSetActiveCest.php rename to tests/database/DataMapper/Pdo/Profiler/Profiler/IsSetActiveCest.php index fb7eb66f6cd..f1126b412b2 100644 --- a/tests/database/DM/Pdo/Profiler/Profiler/IsSetActiveCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/Profiler/IsSetActiveCest.php @@ -9,22 +9,22 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\Profiler; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\Profiler; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; class IsSetActiveCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\Profiler :: + * Database Tests Phalcon\DataMapper\Pdo\Profiler\Profiler :: * isActive()/setActive() * * @since 2020-01-25 */ public function dMPdoProfilerProfilerIsSetActive(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Profiler\Profiler - isActive()/setActive()'); + $I->wantToTest('DataMapper\Pdo\Profiler\Profiler - isActive()/setActive()'); $profiler = new Profiler(); diff --git a/tests/database/DM/Pdo/Profiler/Profiler/StartFinishCest.php b/tests/database/DataMapper/Pdo/Profiler/Profiler/StartFinishCest.php similarity index 76% rename from tests/database/DM/Pdo/Profiler/Profiler/StartFinishCest.php rename to tests/database/DataMapper/Pdo/Profiler/Profiler/StartFinishCest.php index 9a3176a8d77..0058bdbf145 100644 --- a/tests/database/DM/Pdo/Profiler/Profiler/StartFinishCest.php +++ b/tests/database/DataMapper/Pdo/Profiler/Profiler/StartFinishCest.php @@ -9,10 +9,10 @@ declare(strict_types=1); -namespace Phalcon\Test\Database\DM\Pdo\Profiler\Profiler; +namespace Phalcon\Test\Database\DataMapper\Pdo\Profiler\Profiler; use DatabaseTester; -use Phalcon\DM\Pdo\Profiler\Profiler; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; use function sleep; use function strpos; @@ -20,13 +20,13 @@ class StartFinishCest { /** - * Database Tests Phalcon\DM\Pdo\Profiler\Profiler :: start()/finish() + * Database Tests Phalcon\DataMapper\Pdo\Profiler\Profiler :: start()/finish() * * @since 2020-01-25 */ public function dMPdoProfilerProfilerStartFinish(DatabaseTester $I) { - $I->wantToTest('DM\Pdo\Profiler\Profiler - start()/finish()'); + $I->wantToTest('DataMapper\Pdo\Profiler\Profiler - start()/finish()'); $profiler = new Profiler();