Test your trait with PHP Spec
Published on by Eric L. Barnes
Mitchell van Wijngaarden has a new post up with a quick tip on testing your trait with PHP Spec:
Testing your trait with PHP Spec could seem like a though job, at least, that’s what it looked like to me. Since a spec represents the class you’re testing and a trait can’t be instantiated, it might seem not possible. Thankfully PHP Spec is amazing.
Eric is the creator of Laravel News and has been covering Laravel since 2012.