PHPackages                             viraj/cakephp-testdummy - 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. viraj/cakephp-testdummy

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

viraj/cakephp-testdummy
=======================

Factories for CakePHP tests

v3.0(3y ago)368.9k↓85.7%21MITPHPPHP &gt;=7.2.0CI failing

Since Jul 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/viraj-khatavkar/cakephp-testdummy)[ Packagist](https://packagist.org/packages/viraj/cakephp-testdummy)[ RSS](/packages/viraj-cakephp-testdummy/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (6)Versions (17)Used By (1)

Cakephp Testdummy
=================

[](#cakephp-testdummy)

Testdummy provides an easy way of creating random test data. While writing tests you would require random/fake data to run your tests.

Testdummy helps you to create a random set of fake data which you can configure exactly according to your needs in the test.

Step 1: Installation
--------------------

[](#step-1-installation)

Install this package using Composer:

```
composer require viraj/cakephp-testdummy
```

Step 2: Create a factories file
-------------------------------

[](#step-2-create-a-factories-file)

Within the `config/Factories` directory, create a `TableFactory.php` file with the following contents:

```
# config/TableFactory.php
