Zizaco/factory-muff — pull request #15 by dimrsilva (2014-01-25 15:06:54+00:00)
Title: Remove test code from your source

This pull request was made to let the source code clean.
The factory definition should stay out of source code, only on test code.

For this, I created the `define` function, it register a factory for a given model.
Also, the class now accepts Closures as attribute factories.

Example:
```php
$factory->define('SomeModel', array(
'name' => 'string',
'somethingelse' => function() {
return 'just a string';
}
));
```