Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 395 Bytes
<?php
use Dredd\Hooks;
require __DIR__ . '/../../vendor/autoload.php';
$app = require __DIR__ . '/../../bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
Hooks::beforeEach(function (&$transaction) use ($app) {
$app->make('db')->beginTransaction();
});
Hooks::afterEach(function (&$transaction) use ($app) {
$app->make('db')->rollback();
});
You can’t perform that action at this time.