PHPackages                             xepozz/test-it - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. xepozz/test-it

ActiveLibrary[Testing &amp; Quality](/categories/testing)

xepozz/test-it
==============

1.2.1(3y ago)18470[1 issues](https://github.com/xepozz/test-it/issues)PHP

Since Jan 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/xepozz/test-it)[ Packagist](https://packagist.org/packages/xepozz/test-it)[ RSS](/packages/xepozz-test-it/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

Test it!
========

[](#test-it)

A tool for generating files with tests cases based on class methods signatures.

### Installation

[](#installation)

```
composer require xepozz/test-it --dev
```

### Usage

[](#usage)

Run the script from the console and pass `source` directory and `target` directory by your needs. Default values are `src` and `tests` respectively.

```
./vendor/bin/test-it src tests
```

### Description

[](#description)

The package reads all `.php` files from the `source` directory, analyses it and creates files mirrored by the relative path to `source` directory in `target` directory.

The tool respects parameters types and methods return value and generates all possible test cases.

### Example

[](#example)

Input:

```
