Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Allow fixtures to support Closures #8

@clphillips

Description

@clphillips

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions