shadiakiki1986 / phpunit-ffa-assertions
ffa assertions for PHPUnit
Installs: 615
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/shadiakiki1986/phpunit-ffa-assertions
Requires
- php: >=7.3
- phpunit/phpunit: ^8.1
Requires (Dev)
- jakub-onderka/php-parallel-lint: ^0.9.2
- phpunit/php-code-coverage: ^7.0
This package is not auto-updated.
Last update: 2025-10-22 16:38:10 UTC
README
Shamelessly copied from phpunit/phpunit-dom-assertions
PHPUnit assertions I use in FFA:
assertQueriesValid()assertFileEqualsWrap()(the originalassertFileEqualshangs for large files)
Published on packagist
Installation
The recommended way to install the PHPUnit FFA assertions is
through composer 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
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
To run the test suite, you need composer.
$ php composer.phar install
$ vendor/bin/phpunit