POC for unit test generator

v0.6.8 2023-07-24 07:30 UTC

This package is auto-updated.

Last update: 2024-05-24 09:29:11 UTC


Proof-of-concept component providing unit test generator.


This project can generate or single unit for one class or for all project with all needed mocks.

Getting started

  • For example if you want generate unit test for one class use following code:

    $testGenerator = new MicroModule\UnitTestGenerator\Service\TestClass();

  • For generate tests and mocks for all project use:

    $testGenerator = new MicroModule\UnitTestGenerator\Service\TestProject(realpath('src'), ['Migrations', 'Presentation', 'Exception']); $testGenerator->generate();

    second argument is array of excluded folders


This project is licensed under the MIT License - see the LICENSE file for details