get( 'database.connections.'.$app['config']->get('database.default').'.database' ); if (! preg_match('/^shopit_(?:test|testing)(?:_\d+)?$/', $database)) { throw new RuntimeException(sprintf( 'Refusing to run tests against database [%s]. Use [shopit_test] or [shopit_testing].', $database !== '' ? $database : '(empty)' )); } return $app; } }