I'm looking into testing for a Laravel 4.2 app I'm working on. I'm familiar with Symfony so I figured I could use the Symfony DOM crawler (and stuff I've previously written to use with it) as mentioned on the Laravel 4.2 Unit Testing page.
However, I noticed that the mention of the Syfmony DOM crawler has been removed from the Unit Testing page for Laravel 5, although it appears otherwise unchanged - i.e. no Laravel equivalent to the DOM crawler has been added.
Does anyone know if the DOM crawler can still be used in the same way with Laravel 5 and whether there's any particular reason that section has been removed from the testing page for 5?
Of course you can still use it. Just cause there's no reference in the Laravel documentation, it doesnt stop you from using any library you need and want.
My recommendation would be to add BrowserKit (https://packagist.org/packages/symfony/browser-kit) which includes Dom Crawler.
Add in your composer.json, update, then you're good to go.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community