Join 25,000+ Laravel Developers and join the free Laravel Newsletter
Laravel Tutorials / updated: November 08, 2014

Test your trait with PHP Spec

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.

This appeared first on Laravel News

Visit Resource →

Laravel News Partners


Join the weekly newsletter and never miss out on new tips, tutorials, and more.