Download the PHP package shadiakiki1986/phpunit-ffa-assertions without Composer
On this page you can find all versions of the php package shadiakiki1986/phpunit-ffa-assertions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shadiakiki1986/phpunit-ffa-assertions
More information about shadiakiki1986/phpunit-ffa-assertions
Files in shadiakiki1986/phpunit-ffa-assertions
Download shadiakiki1986/phpunit-ffa-assertions
More information about shadiakiki1986/phpunit-ffa-assertions
Files in shadiakiki1986/phpunit-ffa-assertions
Vendor shadiakiki1986
Package phpunit-ffa-assertions
Short Description ffa assertions for PHPUnit
License
Homepage http://github.com/shadiakiki1986/phpunit-ffa-assertions
Package phpunit-ffa-assertions
Short Description ffa assertions for PHPUnit
License
Homepage http://github.com/shadiakiki1986/phpunit-ffa-assertions
Please rate this library. Is it a good library?
Informations about the package phpunit-ffa-assertions
PHPUnit FFA Assertions
Shamelessly copied from phpunit/phpunit-dom-assertions
PHPUnit assertions I use in FFA:
assertQueriesValid()
assertFileEqualsWrap()
(the originalassertFileEquals
hangs 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
All versions of phpunit-ffa-assertions with dependencies
PHP Build Version
Package Version
The package shadiakiki1986/phpunit-ffa-assertions contains the following files
Loading the files please wait ....