PHP Package: codeception/module-db

PHP library for database testing with Codeception framework, provides convenient methods for interacting with databases in tests.

Current Version: 3.2.2
Last Updated: 2025-03-03
PHP Requirement: >=7.1
Dependencies: codeception/codeception, phpunit/phpunit, doctrine/dbal
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Codeception module for database testing simplifies database interactions in automated tests. It offers various methods for setting up, seeding, and cleaning databases, making database testing efficient and reliable. With this module, you can easily manage database transactions and verify data integrity in your tests.

🔗 View on GitHub

Download Latest Version: 3.2.2

Download Download v3.2.2

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/codeception/module-db/3.2.2/autoload.php';

use Codeception\Module\Db;
use Codeception\Module\DbHelper;
use Doctrine\DBAL\Connection;


$obj = new Codeception\Module\Db();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.