2017 © Pedro Peláez
 

library phpunit-ffa-assertions

ffa assertions for PHPUnit

image

shadiakiki1986/phpunit-ffa-assertions

ffa assertions for PHPUnit

  • Thursday, November 24, 2016
  • by shadiakiki1986
  • Repository
  • 1 Watchers
  • 0 Stars
  • 158 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

PHPUnit FFA Assertions

Shamelessly copied from phpunit/phpunit-dom-assertions, (*1)

PHPUnit assertions I use in FFA:, (*2)

  • assertQueriesValid()
  • assertFileEqualsWrap() (the original assertFileEquals hangs for large files)

Published on packagist, (*3)

Build Status, (*4)

Installation

The recommended way to install the PHPUnit FFA assertions is through composer using composer require --dev shadiakiki1986/phpunit-ffa-assertions, (*5)

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

Usage

Extend \FfaPhp\FfaTestCase to use the FFA assertions:, (*7)

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

Build Status, (*8)

To run the test suite, you need composer., (*9)

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

The Versions

24/11 2016

dev-master

9999999-dev http://github.com/shadiakiki1986/phpunit-ffa-assertions

ffa assertions for PHPUnit

  Sources   Download

The Requires

 

The Development Requires

by Shadi Akiki

phpunit tests assertions

26/10 2016

0.1.1

0.1.1.0 http://github.com/shadiakiki1986/phpunit-ffa-assertions

ffa assertions for PHPUnit

  Sources   Download

The Requires

 

The Development Requires

by Shadi Akiki

phpunit tests assertions

04/10 2016

0.1

0.1.0.0 http://github.com/shadiakiki1986/phpunit-ffa-assertions

ffa assertions for PHPUnit

  Sources   Download

The Requires

 

The Development Requires

by Shadi Akiki

phpunit tests assertions