PHPackages                             edno/codeception-dataprovider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. edno/codeception-dataprovider

Abandoned → [codeception/codeception](/?search=codeception%2Fcodeception)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

edno/codeception-dataprovider
=============================

Codeception extension for supporting data-driven tests

0.1.2(9y ago)2551MITPHPPHP &gt;=5.4

Since Jul 31Pushed 9y agoCompare

[ Source](https://github.com/edno/codeception-dataprovider)[ Packagist](https://packagist.org/packages/edno/codeception-dataprovider)[ Docs](https://github.com/edno/codeception-dataprovider)[ RSS](/packages/edno-codeception-dataprovider/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Codeception DataProvider
========================

[](#codeception-dataprovider)

[![Latest Version](https://camo.githubusercontent.com/f0e81bb2748216a0e1fe1ea7fcf16b24da6f89a7252b7fa7298d0d5bee1ebf93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65646e6f2f636f646563657074696f6e2d6461746170726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edno/codeception-dataprovider)[![Dependency Status](https://camo.githubusercontent.com/06ad7e5f09478912839ab6e37fd63704392223d29fc67b94458acdcf94db6931/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537396532636338616137386435303034316362306261662f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/579e2cc8aa78d50041cb0baf)[![Build Status](https://camo.githubusercontent.com/9f69c27f7e885bd9fa480426fd7f22d04c62036326b8a7ca94bc66616a7fb67a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f65646e6f2f636f646563657074696f6e2d6461746170726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/edno/codeception-dataprovider)[![SensioLabs Insight](https://camo.githubusercontent.com/b0d0ace4d31eeebbcae37c854d4c7f20f0fdf36f0acb5e3fa890660b8aa268a5/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f31363731353839372d326534382d343863332d626564302d3163346463343532646131612e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/16715897-2e48-48c3-bed0-1c4dc452da1a)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bc60beea3315893048d146fb1cf9bc9b71be8071fd1d9ecd994d454db4a5dad2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f65646e6f2f636f646563657074696f6e2d6461746170726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/edno/codeception-dataprovider/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/d31c7e0bddada3f02d61c31ed54601f8c9da606c1ea0373ea97864762f1db2aa/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f65646e6f2f636f646563657074696f6e2d6461746170726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/edno/codeception-dataprovider?branch=master)[![GitHub license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/edno/codeception-dataprovider/master/LICENSE)

The [Codeception](http://codeception.com/) extension for supporting dynamic data driven tests (CEST) using `@dataprovider` annotation.

‼️ **This extension is deprecated from Codeception 2.2.7. The `@dataprovider` annotation is now a core feature of Codeception (see [PR#3737](https://github.com/Codeception/Codeception/pull/3737))**

‼️ If you are running Codeception 2.2.7, then remove this extension by deleting the corresponding line in `composer.json` and your `codeception.yml`. No update required for existing tests using `@dataprovider`

Minimum Requirements
--------------------

[](#minimum-requirements)

- Codeception 2.2
- PHP 5.4

Installation
------------

[](#installation)

The extension can be installed using [Composer](https://getcomposer.org)

```
$ composer require edno/codeception-dataprovider
```

Be sure to enable the extension in `codeception.yml` as shown in [configuration](#configuration) below.

Configuration
-------------

[](#configuration)

Enabling **DataProvider** annotation in your tests is done in `codeception.yml`.

```
extensions:
    enabled:
        - Codeception\Extension\DataProvider
```

Usage
-----

[](#usage)

Once installed you will be to use the `@dataprovider` annotation for defining the method to be use for fetching the test data.
Your data source must be a public static function located within your test class. The method should return data compliant with the `@example` annotation.

Example
-------

[](#example)

```
