kch/unittest-generator-entity

Simple unit tests generator for entities

Installs: 4 266

Dependents: 0

Suggesters: 0

Security: 0

Type:symfony-bundle

dev-master 2018-08-06 11:26 UTC

This package is not auto-updated.

Last update: 2024-12-17 18:42:12 UTC


README

Entity

Bundle is used to generate simple unit tests of Entities.

The only thing you need to pass is the Entity namespace:

$ bin/console unit-tests:generate:entity <entity_namespace>

It will create simple unit test with Entity name in Bundle/Tests/ directory.

!!! Just remember to escape backslashes !!!

Installation

For Symfony Framework >= 2.3

Require the bundle and its dependencies with composer:

$ composer require kch/unittest-generator-entity

Register the bundle:

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        new KCH\Bundle\UnitTests\Generator\EntityBundle\UnitTestsGeneratorEntityBundle(),
    );
}

Enjoy !