PHPackages                             cosma/testing-bundle - 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. cosma/testing-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

cosma/testing-bundle
====================

Testing Bundle

2.0.6(10y ago)31.6k2[3 issues](https://github.com/cosma/testing-bundle/issues)MITPHPPHP &gt;=5.3.3

Since Dec 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/cosma/testing-bundle)[ Packagist](https://packagist.org/packages/cosma/testing-bundle)[ Docs](http://github.com/cosma/testing-bundle)[ RSS](/packages/cosma-testing-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (38)Used By (0)

Testing Bundle
==============

[](#testing-bundle)

[![Circle CI](https://camo.githubusercontent.com/8be01c1281b72a1b1751b5b3f8c154477940188439bfe0bb8cbad8bfa7c574a5/68747470733a2f2f636972636c6563692e636f6d2f67682f636f736d612f74657374696e672d62756e646c652e7376673f7374796c653d737667)](https://circleci.com/gh/cosma/testing-bundle)[![SensioLabsInsight](https://camo.githubusercontent.com/2c09db6cafad4401a02cb387d1b19a961079f201db1abec712bdb9da6cc321ce/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37363937653834652d666437662d343761652d393763662d3636613236366339623463302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/7697e84e-fd7f-47ae-97cf-66a266c9b4c0)

An extension of [h4cc/AliceFixturesBundle](https://github.com/h4cc/AliceFixturesBundle) , a Symfony2 bundle for flexible usage of [nelmio/alice](https://github.com/nelmio/alice) fixtures integrated with very powerful data generator [fzaninotto/Faker](https://github.com/fzaninotto/Faker). This bundle integrates [mockery/mockery](https://github.com/padraic/mockery) library, too. The Testing Bundle bundle works with data fixtures in .yml format, detached from the common Doctrine DataFixtures. There are multiple ways of loading fixture files. The Testing Bundle offers loading Fixtures from .yml , dropping and recreating the ORM Schema.

Table of Contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Generate Test Class](#generate-test-class)
- [Test Cases](#test-cases)
- [Retry Tests](#retry-tests)
- [Fixtures](#fixtures)
- [Advanced Usage](#advanced-usage)
- [Run Tests](#run-tests)
- [License](#license)

Installation
============

[](#installation)

```
    $   php composer.phar require cosma/testing-bundle '2.0.*'
```

Follow the 'dev-master' branch for latest dev version. But i recommend to use more stable version tags if available.

After that, add the h4ccAliceFixturesBundle and TestingBundle to your Kernel, most likely in the "dev" or "test" environment.

```
# app/AppKernel.php
