Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 446 Bytes

UNITTEST.md

File metadata and controls

23 lines (19 loc) · 446 Bytes

Running Unit Tests with SQLite

  1. Install dependencies:

    composer install
  2. Install required packages on Debian:

    apt install php-pdo php-pdo-sqlite php-odbc libsqliteodbc sqlite3 
  3. Enable SQLite mocking:

    • Open tests/config/db.config.php
    • Set:
      'mockDb2UsingSqlite' => true,
  4. Run the tests:

    vendor/bin/phpunit