Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow fixtures to support Closures #8

Open
clphillips opened this issue Apr 17, 2015 · 1 comment
Open

Allow fixtures to support Closures #8

clphillips opened this issue Apr 17, 2015 · 1 comment

Comments

@clphillips
Copy link
Contributor

It would be nice if fixture files could support Closures. For example:

// users.php
return array(
    'AdminUser' => array(
        'first_name' => 'Admin',
        'last_name' => 'User',
        'email' => 'email@domain.com',
        'password' => function () {
            $mylib = new MyLibrary();
            return $mylib->hashPassword('password');
        }
    )
);

Thoughts?

@00defeat
Copy link
Contributor

Add in #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants