kch/unittest-generator-entity

Simple unit tests generator for entities

Package info

bitbucket.org/wjts/unit-test-generator

Issues

Type:symfony-bundle

pkg:composer/kch/unittest-generator-entity

Statistics

Installs: 4 266

Dependents: 0

Suggesters: 0

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

Requires

  • php: >=5.3.0

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT be7da499d02e1026ea904d2258713875f4853590

  • KredytyChwilowkiProgrammer <p.pikula.woop@kredyty-chwilowki.pl>

generatorSymfony2unittestentity

This package is not auto-updated.

Last update: 2026-06-17 01:18:50 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 !