PHPackages                             liip/drupal-testing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. liip/drupal-testing

ActiveLibrary

liip/drupal-testing
===================

A library to integrate PHPUnit with Drupal

4205[2 issues](https://github.com/sixty-nine/DrupalTesting/issues)PHP

Since Jan 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sixty-nine/DrupalTesting)[ Packagist](https://packagist.org/packages/liip/drupal-testing)[ RSS](/packages/liip-drupal-testing/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Drupal 7 PHPUnit testing
========================

[](#drupal-7-phpunit-testing)

This is code is completely experimental !

Purpose
-------

[](#purpose)

The goal is to integrate PHPUnit and SQLite with Drupal in order to be able to run tests outside of Drupal.

For now you can get a get a Symfony/DomCrawler from a page and log-in and out from Drupal.

Usage
-----

[](#usage)

```
# Install composer + init / update, then...
composer.phar install

# Duplicate and adapt the test configuration
# You have to adapt the DRUPAL_ROOT and DRUPAL_URL to point to a working Drupal instance
cp phpunit.xml.dist phpunit.xml

# Run the tests
# The self tests will only succeed if you enabled the short URLs for your Drupal install.
phpunit -c .

```

TODO
----

[](#todo)

- integrate SQLite
- switch to a new database
- explore integration of Lapistano's libraries
- NTH: auto-install + modules enable/disable into a clean DB

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance21

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/32f7a526bdd67530cf360d5aced441c41e86e8524eabb4b7bf8085587d4fbcf0?d=identicon)[sixty-nine](/maintainers/sixty-nine)

---

Top Contributors

[![andreiashu](https://avatars.githubusercontent.com/u/342638?v=4)](https://github.com/andreiashu "andreiashu (24 commits)")[![sixty-nine](https://avatars.githubusercontent.com/u/398679?v=4)](https://github.com/sixty-nine "sixty-nine (6 commits)")[![lapistano](https://avatars.githubusercontent.com/u/95115?v=4)](https://github.com/lapistano "lapistano (3 commits)")[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (1 commits)")

### Embed Badge

![Health badge](/badges/liip-drupal-testing/health.svg)

```
[![Health](https://phpackages.com/badges/liip-drupal-testing/health.svg)](https://phpackages.com/packages/liip-drupal-testing)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
