engelsystem/tests/Feature/ApplicationFeatureTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
631 B
PHP
Raw Normal View History

<?php
namespace Engelsystem\Test\Feature;
use PHPUnit\Framework\TestCase;
abstract class ApplicationFeatureTest extends TestCase
{
public static function setUpBeforeClass(): void
{
$_SERVER['HTTP_HOST'] = 'foo.bar';
2020-01-02 14:14:03 +01:00
require __DIR__ . '/../../includes/engelsystem.php';
}
/**
* Undo the changes done by the ConfigureEnvironmentServiceProvider
*/
protected function tearDown(): void
{
parent::tearDown();
ini_set('display_errors', true);
error_reporting(E_ALL);
ini_set('date.timezone', 'UTC');
date_default_timezone_set('UTC');
}
}