Foundry alternatives and similar libraries
Based on the "Testing" category.
Alternatively, view foundry alternatives based on common mentions on social networks and blogs.
Do you think we are missing an alternative of Foundry or a related project?
Foundry makes creating fixtures data fun again, via an expressive, auto-completable, on-demand fixtures system with Symfony and Doctrine:
$post = PostFactory::new() // Create the factory for Post objects ->published() // Make the post in a "published" state ->create([ // create & persist the Post object 'slug' => 'post-a' // This Post object only requires the slug field - all other fields are random data ]) ;
Want to watch a screencast 🎥 about it? Check out https://symfonycasts.com/foundry
The AAA style of testing was first introduced to me by Adam Wathan's excellent Test Driven Laravel Course. The inspiration for this libraries API comes from Laravel factories and christophrumpel/laravel-factories-reloaded.