PHPackages                             shadiakiki1986/phpunit-ffa-assertions - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. shadiakiki1986/phpunit-ffa-assertions

ActiveLibrary[Testing &amp; Quality](/categories/testing)

shadiakiki1986/phpunit-ffa-assertions
=====================================

ffa assertions for PHPUnit

0.2.0(7y ago)0629PHPPHP &gt;=7.3

Since Oct 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/shadiakiki1986/phpunit-ffa-assertions)[ Packagist](https://packagist.org/packages/shadiakiki1986/phpunit-ffa-assertions)[ Docs](http://github.com/shadiakiki1986/phpunit-ffa-assertions)[ RSS](/packages/shadiakiki1986-phpunit-ffa-assertions/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

PHPUnit FFA Assertions
======================

[](#phpunit-ffa-assertions)

Shamelessly copied from [phpunit/phpunit-dom-assertions](https://github.com/phpunit/phpunit-dom-assertions/)

PHPUnit assertions I use in FFA:

- `assertQueriesValid()`
- `assertFileEqualsWrap()` (the original `assertFileEquals` hangs for large files)

Published on [packagist](https://packagist.org/packages/shadiakiki1986/phpunit-ffa-assertions)

[![Build Status](https://camo.githubusercontent.com/6846c0595d5f4475c9008848dd74b475e741cfb1c03ffae5501cd9699111b0c7/68747470733a2f2f7472617669732d63692e6f72672f7368616469616b696b69313938362f706870756e69742d6666612d617373657274696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/shadiakiki1986/phpunit-ffa-assertions)

Installation
------------

[](#installation)

The recommended way to install the PHPUnit FFA assertions is [through composer](http://getcomposer.org) using `composer require --dev shadiakiki1986/phpunit-ffa-assertions`

(Note the `--dev` is for adding the package to the `require-dev` part in the `composer.json` file)

Usage
-----

[](#usage)

Extend `\FfaPhp\FfaTestCase` to use the FFA assertions:

```
class FfaTest1 extends \FfaPhp\FfaTestCase
{
    public function testQueriesValid()
    {
        $this->assertQueriesValid('select a from b');
        $this->assertQueriesValid('select a from b','prefix message if fail');
    }

    public function testFileEqualsWrap()
    {
        $this->assertFileEqualsWrap('path/to/file','some content');
    }

}
```

Tests
-----

[](#tests)

[![Build Status](https://camo.githubusercontent.com/c5254663ed9bc2bbeb3f461b3367e683fc3a9358357a64a1de69f942773d1512/68747470733a2f2f7472617669732d63692e6f72672f7368616469616b696b69313938362f706870756e69742d6666612d617373657274696f6e732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/shadiakiki1986/phpunit-ffa-assertions)

To run the test suite, you need [composer](http://getcomposer.org).

```
$ php composer.phar install
$ vendor/bin/phpunit

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~459 days

Total

3

Last Release

2590d ago

PHP version history (2 changes)0.1PHP &gt;=5.3.3

0.2.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cc997a8672e96aaee90c8555b7e5bc9693894e74c7530abf2216ee6799357ff?d=identicon)[shadiakiki1986](/maintainers/shadiakiki1986)

---

Top Contributors

[![shadiakiki1986](https://avatars.githubusercontent.com/u/8392324?v=4)](https://github.com/shadiakiki1986 "shadiakiki1986 (17 commits)")

---

Tags

phpunitassertionstests

### Embed Badge

![Health badge](/badges/shadiakiki1986-phpunit-ffa-assertions/health.svg)

```
[![Health](https://phpackages.com/badges/shadiakiki1986-phpunit-ffa-assertions/health.svg)](https://phpackages.com/packages/shadiakiki1986-phpunit-ffa-assertions)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[nette/tester

Nette Tester: enjoyable unit testing in PHP with code coverage reporter. 🍏🍏🍎🍏

4917.3M1.5k](/packages/nette-tester)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[phpunit/phpunit-dom-assertions

DOM assertions for PHPUnit

29343.5k11](/packages/phpunit-phpunit-dom-assertions)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[aik099/phpunit-mink

Library for using Mink in PHPUnit tests. Supports session sharing between tests in a test case.

72136.2k1](/packages/aik099-phpunit-mink)

PHPackages © 2026

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