X
Create New Item
Item Type :
File
Folder
Item Name :
X
Search Results
vendor
laravel
framework
src
Illuminate
Foundation
Testing
Cancel
Backup
Advanced Editor
Save
<?php namespace Illuminate\Foundation\Testing; use Exception; trait WithoutEvents { /** * Prevent all event handles from being executed. * * @throws \Exception */ public function disableEventsForAllTests() { if (method_exists($this, 'withoutEvents')) { $this->withoutEvents(); } else { throw new Exception('Unable to disable events. ApplicationTrait not used.'); } } }