urouro-net / tiny-factory

A PHP library for preparing test data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tiny-factory

A library for preparing test data. Inspired by factory_girl, and Laravel Factory

Usage

// Setting up
Factory::initialize(__DIR__.'/fixtures.php', function ($tableName, $definition) {
    // Database insertion...
});

// Creation a test data
Factory::create('users');

Example at here

License

under the MIT license

About

A PHP library for preparing test data.

License:MIT License


Languages

Language:PHP 100.0%