Skip to content

Load fixture without a file path #245

@alexislefebvre

Description

@alexislefebvre

from my understanding, we always have to define our fixture in a separate class,
what i would really like is to define the fixture data inside my test function, (maybe not always but at least sometimes)

i really like the idea of having a tight coupling between a test and the specific data it requires, to avoid creating some kind of global state that will be likely to break at scale.

Is there any way to achieve that with your lib ? something like

$this->databaseTool->loadFixturesInline(function(){ //define fixture code here... });

Originally posted by @vulkanosaure in #64 (comment)

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