kch / unittest-generator-entity
Simple unit tests generator for entities
Package info
bitbucket.org/wjts/unit-test-generator
Type:symfony-bundle
pkg:composer/kch/unittest-generator-entity
dev-master
2018-08-06 11:26 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2026-03-10 23:59:39 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 !