Provides generic data providers for use with phpunit/phpunit.

Overview

data-provider

Integrate Prune Release Renew

Code Coverage Type Coverage

Latest Stable Version Total Downloads

Installation

Run

composer require --dev ergebnis/data-provider

Usage

This package provides the following generic data providers:

Since it is possible to use multiple @dataProvider annotations for test methods, these generic data providers allow for reuse and composition of data providers:



declare(strict_types=1);

namespace Example\Test;

use PHPUnit\Framework;

final class ExampleTest extends Framework\TestCase
{
    /**
     * @dataProvider \Ergebnis\DataProvider\StringProvider::blank()
     * @dataProvider \Ergebnis\DataProvider\StringProvider::empty()
     */
    public function testFromNameRejectsBlankOrEmptyStrings(string $value): void
    {
        $this->expectException(\InvalidArgumentException::class);
        $this->expectExceptionMessage('Value can not be an empty or blank string.');

        UserName::fromString($value);
    }
}

DataProvider\BoolProvider

  • arbitrary() provides true, false
  • false() provides false
  • true() provides true

For examples, see Ergebnis\DataProvider\Test\Unit\BoolProviderTest.

DataProvider\FloatProvider

  • arbitrary() provides arbitrary floats
  • greaterThanOne() provides ints greater than 1.0
  • greaterThanZero() provides ints greater than 0.0
  • lessThanOne() provides ints less than 1.0
  • lessThanZero() provides ints less than 0.0
  • one() provides 1.0
  • zero() provides 0.0

For examples, see Ergebnis\DataProvider\Test\Unit\FloatProviderTest.

DataProvider\IntProvider

  • arbitrary() provides arbitrary ints
  • greaterThanOne() provides ints greater than 1
  • greaterThanZero() provides ints greater than 0
  • lessThanOne() provides ints less than 1
  • lessThanZero() provides ints less than 0
  • one() provides 1
  • zero() provides 0

For examples, see Ergebnis\DataProvider\Test\Unit\IntProviderTest.

DataProvider\NullProvider

  • null() provides null

For examples, see Ergebnis\DataProvider\Test\Unit\NullProviderTest.

DataProvider\ObjectProvider

  • object() provides an instance of stdClass

For examples, see Ergebnis\DataProvider\Test\Unit\ObjectProviderTest.

DataProvider\ResourceProvider

  • resource() provides a resource

For examples, see Ergebnis\DataProvider\Test\Unit\ResourceProviderTest.

DataProvider\StringProvider

  • arbitrary() provides arbitrary strings
  • blank() provides strings consisting of whitespace characters only
  • empty() provides an empty string
  • trimmed() provides non-empty, non-blank strings without leading and trailing whitespace
  • untrimmed() provides non-empty, non-blank strings with additional leading and trailing whitespace
  • withWhitespace() provides non-empty, non-blank, trimmed strings containing whitespace

For examples, see Ergebnis\DataProvider\Test\Unit\StringProviderTest.

Changelog

Please have a look at CHANGELOG.md.

Contributing

Please have a look at CONTRIBUTING.md.

Code of Conduct

Please have a look at CODE_OF_CONDUCT.md.

License

This package is licensed using the MIT License.

Please have a look at LICENSE.md.

Curious what I am building?

📬 Subscribe to my list, and I will occasionally send you an email to let you know what I am working on.

Comments
Releases(1.3.0)
  • 1.3.0(Nov 28, 2022)

    What's Changed

    • composer(deps-dev): bump phpunit/phpunit from 9.5.13 to 9.5.14 by @dependabot in https://github.com/ergebnis/data-provider/pull/42
    • composer(deps-dev): bump vimeo/psalm from 4.20.0 to 4.21.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/43
    • composer(deps-dev): bump phpunit/phpunit from 9.5.14 to 9.5.16 by @dependabot in https://github.com/ergebnis/data-provider/pull/44
    • composer(deps-dev): bump vimeo/psalm from 4.21.0 to 4.22.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/45
    • github-actions(deps): bump shivammathur/setup-php from 2.17.0 to 2.17.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/46
    • github-actions(deps): bump actions/stale from 4.1.0 to 5 by @dependabot in https://github.com/ergebnis/data-provider/pull/47
    • github-actions(deps): bump actions/checkout from 2.4.0 to 3 by @dependabot in https://github.com/ergebnis/data-provider/pull/48
    • composer(deps-dev): bump phpunit/phpunit from 9.5.16 to 9.5.17 by @dependabot in https://github.com/ergebnis/data-provider/pull/49
    • composer(deps-dev): bump phpunit/phpunit from 9.5.17 to 9.5.18 by @dependabot in https://github.com/ergebnis/data-provider/pull/50
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.1.0 to 4.2.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/51
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.2.0 to 4.3.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/52
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.23.1 to 2.24.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/53
    • composer(deps-dev): bump phpunit/phpunit from 9.5.18 to 9.5.19 by @dependabot in https://github.com/ergebnis/data-provider/pull/54
    • github-actions(deps): bump ergebnis/.github from 1.3.2 to 1.4.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/55
    • github-actions(deps): bump stefanzweifel/git-auto-commit-action from 4.13.1 to 4.14.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/56
    • github-actions(deps): bump actions/cache from 2.1.7 to 3 by @dependabot in https://github.com/ergebnis/data-provider/pull/58
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.3.0 to 4.4.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/59
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.24.0 to 2.24.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/57
    • github-actions(deps): bump shivammathur/setup-php from 2.17.1 to 2.18.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/60
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.24.1 to 2.25.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/62
    • github-actions(deps): bump ergebnis/.github from 1.4.0 to 1.4.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/61
    • composer(deps-dev): bump phpunit/phpunit from 9.5.19 to 9.5.20 by @dependabot in https://github.com/ergebnis/data-provider/pull/63
    • github-actions(deps): bump shivammathur/setup-php from 2.18.0 to 2.18.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/64
    • github-actions(deps): bump stefanzweifel/git-auto-commit-action from 4.14.0 to 4.14.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/65
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.25.1 to 2.25.2 by @dependabot in https://github.com/ergebnis/data-provider/pull/66
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.25.2 to 2.26.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/68
    • composer(deps-dev): bump vimeo/psalm from 4.22.0 to 4.23.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/67
    • github-actions(deps): bump ergebnis/.github from 1.4.1 to 1.5.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/69
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.26.0 to 2.27.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/70
    • github-actions(deps): bump shivammathur/setup-php from 2.18.1 to 2.19.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/71
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.27.0 to 2.28.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/72
    • github-actions(deps): bump shivammathur/setup-php from 2.19.0 to 2.19.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/73
    • composer(deps-dev): bump psalm/plugin-phpunit from 0.16.1 to 0.17.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/74
    • composer(deps-dev): bump phpunit/phpunit from 9.5.20 to 9.5.21 by @dependabot in https://github.com/ergebnis/data-provider/pull/75
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.28.0 to 2.28.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/76
    • composer(deps-dev): bump vimeo/psalm from 4.23.0 to 4.24.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/77
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.28.1 to 2.28.2 by @dependabot in https://github.com/ergebnis/data-provider/pull/78
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.28.2 to 2.28.3 by @dependabot in https://github.com/ergebnis/data-provider/pull/79
    • github-actions(deps): bump shivammathur/setup-php from 2.19.1 to 2.20.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/80
    • github-actions(deps): bump shivammathur/setup-php from 2.20.0 to 2.20.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/81
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.4.0 to 4.5.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/82
    • github-actions(deps): bump ergebnis/.github from 1.5.0 to 1.5.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/83
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.5.0 to 4.5.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/84
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.5.1 to 4.5.2 by @dependabot in https://github.com/ergebnis/data-provider/pull/85
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.5.2 to 4.5.3 by @dependabot in https://github.com/ergebnis/data-provider/pull/86
    • github-actions(deps): bump shivammathur/setup-php from 2.20.1 to 2.21.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/87
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.5.3 to 4.6.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/89
    • github-actions(deps): bump shivammathur/setup-php from 2.21.0 to 2.21.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/90
    • composer(deps-dev): bump vimeo/psalm from 4.24.0 to 4.25.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/91
    • composer(deps-dev): bump vimeo/psalm from 4.25.0 to 4.26.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/92
    • github-actions(deps): bump shivammathur/setup-php from 2.21.1 to 2.21.2 by @dependabot in https://github.com/ergebnis/data-provider/pull/93
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.6.0 to 4.7.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/94
    • composer(deps-dev): bump phpunit/phpunit from 9.5.21 to 9.5.23 by @dependabot in https://github.com/ergebnis/data-provider/pull/95
    • composer(deps-dev): bump phpunit/phpunit from 9.5.23 to 9.5.24 by @dependabot in https://github.com/ergebnis/data-provider/pull/96
    • composer(deps-dev): bump vimeo/psalm from 4.26.0 to 4.27.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/97
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.7.0 to 4.8.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/98
    • github-actions(deps): bump actions/stale from 5 to 6 by @dependabot in https://github.com/ergebnis/data-provider/pull/99
    • composer(deps-dev): bump phpunit/phpunit from 9.5.24 to 9.5.25 by @dependabot in https://github.com/ergebnis/data-provider/pull/101
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.8.0 to 4.9.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/102
    • github-actions(deps): bump ergebnis/.github from 1.5.1 to 1.7.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/103
    • composer(deps-dev): bump ergebnis/license from 1.2.0 to 2.0.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/104
    • composer(deps-dev): bump vimeo/psalm from 4.27.0 to 4.28.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/105
    • github-actions(deps): bump stefanzweifel/git-auto-commit-action from 4.14.1 to 4.15.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/106
    • composer(deps-dev): bump vimeo/psalm from 4.28.0 to 4.29.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/107
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.9.0 to 4.10.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/108
    • github-actions(deps): Bump stefanzweifel/git-auto-commit-action from 4.15.1 to 4.15.2 by @dependabot in https://github.com/ergebnis/data-provider/pull/109
    • github-actions(deps): Bump stefanzweifel/git-auto-commit-action from 4.15.2 to 4.15.3 by @dependabot in https://github.com/ergebnis/data-provider/pull/110
    • composer(deps-dev): Bump phpunit/phpunit from 9.5.25 to 9.5.26 by @dependabot in https://github.com/ergebnis/data-provider/pull/112
    • github-actions(deps): Bump shivammathur/setup-php from 2.21.2 to 2.22.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/111
    • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 4.10.0 to 4.11.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/113
    • composer(deps-dev): Bump psalm/plugin-phpunit from 0.17.0 to 0.18.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/114
    • composer(deps-dev): Bump psalm/plugin-phpunit from 0.18.0 to 0.18.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/115
    • github-actions(deps): Bump stefanzweifel/git-auto-commit-action from 4.15.3 to 4.15.4 by @dependabot in https://github.com/ergebnis/data-provider/pull/116
    • composer(deps-dev): Bump vimeo/psalm from 4.29.0 to 4.30.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/117
    • composer(deps-dev): Bump psalm/plugin-phpunit from 0.18.1 to 0.18.3 by @dependabot in https://github.com/ergebnis/data-provider/pull/118
    • composer(deps): bump fakerphp/faker from 1.19.0 to 1.20.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/88
    • Fix: Drop support for PHP 7.4 by @localheinz in https://github.com/ergebnis/data-provider/pull/119
    • composer(deps-dev): Bump ergebnis/license from 2.0.0 to 2.1.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/120
    • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 4.11.0 to 5.0.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/121

    Full Changelog: https://github.com/ergebnis/data-provider/compare/1.2.0...1.3.0

    Source code(tar.gz)
    Source code(zip)
  • 1.2.0(Feb 10, 2022)

    What's Changed

    • Fix: Add missing comma by @localheinz in https://github.com/ergebnis/data-provider/pull/25
    • composer(deps-dev): bump phpunit/phpunit from 9.5.12 to 9.5.13 by @dependabot in https://github.com/ergebnis/data-provider/pull/26
    • composer(deps-dev): bump ergebnis/license from 1.1.0 to 1.2.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/27
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.20.0 to 2.23.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/28
    • composer(deps): bump fakerphp/faker from 1.17.0 to 1.18.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/29
    • github-actions(deps): bump ergebnis/.github from 1.2.1 to 1.3.2 by @dependabot in https://github.com/ergebnis/data-provider/pull/31
    • Enhancement: Use Php74 rule set by @localheinz in https://github.com/ergebnis/data-provider/pull/32
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 3.4.0 to 4.0.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/30
    • Enhancement: Reuse composite actions from ergebnis/.github by @localheinz in https://github.com/ergebnis/data-provider/pull/33
    • composer(deps-dev): bump vimeo/psalm from 4.18.1 to 4.19.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/34
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.23.0 to 2.23.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/35
    • composer(deps-dev): bump vimeo/psalm from 4.19.0 to 4.20.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/37
    • github-actions(deps): bump shivammathur/setup-php from 2.16.0 to 2.17.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/39
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 4.0.0 to 4.1.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/38
    • composer(deps): bump fakerphp/faker from 1.18.0 to 1.19.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/36
    • Enhancement: Implement StringProvider::uuid() by @localheinz in https://github.com/ergebnis/data-provider/pull/40
    • Enhancement: Synchronize with ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/data-provider/pull/41

    Full Changelog: https://github.com/ergebnis/data-provider/compare/1.1.0...1.2.0

    Source code(tar.gz)
    Source code(zip)
  • 1.1.0(Jan 24, 2022)

    What's Changed

    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 3.2.1 to 3.3.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/2
    • composer(deps): bump fakerphp/faker from 1.16.0 to 1.17.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/4
    • composer(deps-dev): bump vimeo/psalm from 4.13.1 to 4.14.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/3
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.16.0 to 2.17.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/5
    • composer(deps-dev): bump vimeo/psalm from 4.14.0 to 4.15.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/6
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.17.0 to 2.18.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/7
    • composer(deps-dev): bump ergebnis/php-cs-fixer-config from 3.3.0 to 3.4.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/8
    • composer(deps-dev): bump phpunit/phpunit from 9.5.10 to 9.5.11 by @dependabot in https://github.com/ergebnis/data-provider/pull/11
    • composer(deps-dev): bump vimeo/psalm from 4.15.0 to 4.16.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/12
    • composer(deps-dev): bump ergebnis/composer-normalize from 2.18.0 to 2.20.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/13
    • composer(deps-dev): bump vimeo/psalm from 4.16.1 to 4.17.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/14
    • composer(deps-dev): bump vimeo/psalm from 4.17.0 to 4.18 by @dependabot in https://github.com/ergebnis/data-provider/pull/15
    • composer(deps-dev): bump vimeo/psalm from 4.18 to 4.18.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/16
    • github-actions(deps): bump stefanzweifel/git-auto-commit-action from 4.12.0 to 4.13.0 by @dependabot in https://github.com/ergebnis/data-provider/pull/17
    • github-actions(deps): bump stefanzweifel/git-auto-commit-action from 4.13.0 to 4.13.1 by @dependabot in https://github.com/ergebnis/data-provider/pull/18
    • composer(deps-dev): bump phpunit/phpunit from 9.5.11 to 9.5.12 by @dependabot in https://github.com/ergebnis/data-provider/pull/19
    • Fix: Allow composer plugins by @localheinz in https://github.com/ergebnis/data-provider/pull/20
    • Fix: Drop support for PHP 7.3 by @localheinz in https://github.com/ergebnis/data-provider/pull/21
    • Fix: Run make static-code-analysis-baseline by @localheinz in https://github.com/ergebnis/data-provider/pull/22
    • Enhancement: Use PHP_FLOAT_EPSILON by @localheinz in https://github.com/ergebnis/data-provider/pull/23
    • Enhancement: Synchronize with ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/data-provider/pull/24

    New Contributors

    • @dependabot made their first contribution in https://github.com/ergebnis/data-provider/pull/2

    Full Changelog: https://github.com/ergebnis/data-provider/compare/1.0.0...1.1.0

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0(Nov 25, 2021)

Owner
null
Mockery - Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library

Mockery Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its c

Mockery 10.3k Jan 1, 2023
The most powerful and flexible mocking framework for PHPUnit / Codeception.

AspectMock AspectMock is not an ordinary PHP mocking framework. With the power of Aspect Oriented programming and the awesome Go-AOP library, AspectMo

Codeception Testing Framework 777 Dec 12, 2022
:computer: Parallel testing for PHPUnit

ParaTest The objective of ParaTest is to support parallel testing in PHPUnit. Provided you have well-written PHPUnit tests, you can drop paratest in y

null 2k Dec 31, 2022
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.

vfsStream vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with

null 1.4k Dec 23, 2022
Rector upgrades rules for PHPUnit

Rector Rules for PHPUnit See available PHPUnit rules Install composer require rector/rector-phpunit Use Sets To add a set to your config, use Rector\P

RectorPHP 34 Dec 27, 2022
Add mocking capabilities to Pest or PHPUnit

This repository contains the Pest Plugin Mock. The Mocking API can be used in regular PHPUnit projects. For that, you just have to run the following c

PEST 16 Dec 3, 2022
A sample RESTful API in Laravel with PHPunit test.

Laravel PHP Framework URL | URI | Action |

Fasil 9 Jul 11, 2020
PHPUnit Application Architecture Test

PHPUnit Application Architecture Test Idea: write architecture tests as well as feature and unit tests Installation Install via composer composer requ

null 19 Dec 11, 2022
PHPUnit to Pest Converter

PestConverter PestConverter is a PHP library for converting PHPUnit tests to Pest tests. Before use Before using this converter, make sure your files

null 10 Nov 21, 2022
Allows the running of PHPUnit within ExpressionEngine

EE Unit Tests EE Unit Tests is an Add-on for ExpressionEngine that allows developers to execute unit tests from the Command Line. EE Unit Tests uses P

Eric Lamb 6 Jan 14, 2022
PHP libraries that makes Selenium WebDriver + PHPUnit functional testing easy and robust

Steward: easy and robust testing with Selenium WebDriver + PHPUnit Steward is a set of libraries made to simplify writing and running robust functiona

LMC s.r.o. 219 Dec 17, 2022
PHPUnit extension for database interaction testing.

This extension is no longer maintained DbUnit PHPUnit extension for database interaction testing. Installation Composer If you use Composer to manage

Sebastian Bergmann 224 Aug 20, 2022
Mock implementation of the Translation package, for testing with PHPUnit

PoP Translation - Mock Mock implementation of the Translation package, for testing with PHPUnit Install Via Composer composer require getpop/translati

PoP 1 Jan 13, 2022
Magento PHPUnit Integration

Magento PHPUnit Integration Magento is a quite complex platform without built in unit test suite, so the code is not oriented on running tests over it

EcomDev B.V. 303 Dec 18, 2022
The objective of ParaTest is to support parallel testing in PHPUnit

The objective of ParaTest is to support parallel testing in PHPUnit. Provided you have well-written PHPUnit tests, you can drop paratest in your project and start using it with no additional bootstrap or configurations!

null 2k Dec 31, 2022
Report high memory usage PHPUnit tests: Managed by opg-org-infra & Terraform

phpunit-memory-usage Report high memory usage PHPUnit tests: Managed by opg-org-infra & Terraform Configuration Add into the phpunit.xml extensions se

Ministry of Justice 2 Aug 4, 2022
PHPStan PHPUnit extensions and rules

PHPStan PHPUnit extensions and rules PHPStan PHPUnit This extension provides following features: createMock(), getMockForAbstractClass() and getMockFr

PHPStan 359 Dec 28, 2022
Satisfy the Type APIs for the WordPress schema when running PHPUnit tests

Satisfy the Type APIs for the WordPress schema when running PHPUnit tests

GraphQL API 1 Apr 12, 2022