Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.1 KB

File metadata and controls

56 lines (39 loc) · 1.1 KB

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require apperclass/test-doc-bundle "dev-master"

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Apperclass\TestDocBundle\ApperclassTestDocBundle(),
        );
    }
}

Step 3: Configure

Override if you need the alias for the entity manager used to write into database on test environment.

<service id="apperclass.test_doc.entity_manager" alias="doctrine.orm.entity_manager" />

Step 4: Run your tests

Run your tests (in test environment).

Step 4: View the tests doc

Use the generated test doc /app_dev.php/doc/test