src/Concerns/ProvidesBrowser.php
protected function captureFailuresFor($browsers)
    {
        $browsers->each(function ($browser, $key) {
            $name = str_replace('\\', '_', get_class($this)).'_'.$this->getName(false);

            $browser->screenshot('failure-'.$name.'-'.$key);
        });
    }
protected function captureFailuresFor($browsers)
    {
        $browsers->each(function ($browser, $key) {
            $name = str_replace('\\', '_', get_class($this)).'_'.$this->getName(false);

            $browser->screenshot('failure-'.$name.'-'.$key);
        });
    }
protected function captureFailuresFor ( $ browsers ) { $ browsers -> each ( function ( $ browser , $ key ) { $ name = str_replace ( '\\' , '_' , get_class ( $ this ) ) . '_' . $ this -> getName ( false ) ; $ browser -> screenshot ( 'failure-' . $ name . '-' . $ key ) ; } ) ; }
Capture failure screenshots for each browser.

@param  \Illuminate\Support\Collection  $browsers
@return void
Capture failure screenshots for each browser .