2017 © Pedro Peláez
 

library assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

image

mehr-als-nix/assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

  • Monday, February 12, 2018
  • by siad007
  • Repository
  • 2 Watchers
  • 2 Stars
  • 5,529 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 6 % Grown

The README.md

Assumptions (not only) for PHPUnit.

Build Status Code Climate Test Coverage Dependency Status Latest Stable Version Latest Unstable Version License Total Downloads Build status, (*1)

Introduction

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met., (*2)

The default PHPUnit runner treats tests with failing assumptions as skipped. Custom runners may behave differently., (*3)

We have included several assumptions like assumeTrue, assumeExtensionLoaded,... by default. All of those functions are subsumed in assumeThat, with the appropriate Hamcrest matcher., (*4)

A failing assumption in a @before or @beforeClass method will have the same effect as a failing assumption in each @test method of the class., (*5)


The concept behind Assumptions for PHPUnit is based on the adequate junit feature, which is documented on their wiki - Assumptions with assume, (*6)

Note

There is a similar feature in PHPUnit called @requires!, (*7)

If you are familiar in using @requires annotation to dedicate that a given requirement would be given and you are happy about, then you just do not need the use of Assumption for PHPUnit., (*8)

But if you want to have - code completion - better readability - finer control - more requirement abilities, (*9)

then you should give Assumption for PHPUnit a try., (*10)


Requirements

  • PHP >= 7.1

if you are looking for a version which supports PHP < 7.0.7 just use the v2.0.0, (*11)

Installation

see wiki:installation, (*12)

Assumptions

see wiki:assumptions, (*13)

Examples

see wiki:examples, (*14)

ResultPrinter

see wiki:result-printer, (*15)

The Versions

12/02 2018

dev-master

9999999-dev http://mehralsnix.github.io/Assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

12/02 2018

dev-develop

dev-develop http://mehralsnix.github.io/Assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

12/02 2018

v4.0.0

4.0.0.0 http://mehralsnix.github.io/Assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

05/06 2017

v3.0.0

3.0.0.0 http://mehralsnix.github.io/Assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

10/10 2015

v2.0.0

2.0.0.0 http://mehralsnix.github.io/Assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

25/05 2015

v1.1.0

1.1.0.0 http://mehralsnix.github.io/Assumptions

Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

23/05 2015

v1.0.2

1.0.2.0

PHPUnit implementation of the junit assumptions feature.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

18/05 2015

v1.0.1

1.0.1.0

PHPUnit implementation of the junit assumptions feature.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli

phpunit testing

17/05 2015

v1.0.0

1.0.0.0

Assumptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siad Ardroumli