engelsystem/tests/Feature/ApplicationFeatureTest.php

31 lines
657 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
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');
}
}