2018-01-19 23:19:50 +01:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-01-19 23:19:50 +01:00
|
|
|
namespace Engelsystem\Test\Feature;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
abstract class ApplicationFeatureTest extends TestCase
|
|
|
|
{
|
2019-04-24 10:45:00 +02:00
|
|
|
public static function setUpBeforeClass(): void
|
2018-01-19 23:19:50 +01:00
|
|
|
{
|
|
|
|
$_SERVER['HTTP_HOST'] = 'foo.bar';
|
2020-01-02 14:14:03 +01:00
|
|
|
require __DIR__ . '/../../includes/engelsystem.php';
|
2018-01-19 23:19:50 +01:00
|
|
|
}
|
2022-12-14 00:53:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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');
|
|
|
|
}
|
2018-01-19 23:19:50 +01:00
|
|
|
}
|