diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-01-19 23:19:50 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-07 16:54:08 +0200 |
commit | 79e9714c745c5e611945e30e60f7e563fdc922bc (patch) | |
tree | 404718373bb87b7bcd30d51bbb48e702fa3bb397 /tests/Feature/ApplicationFeatureTest.php | |
parent | 3c088292050982505726f5136ff4d0f1a918b879 (diff) |
Fix for Diactoros in legacy feature tests
Diffstat (limited to 'tests/Feature/ApplicationFeatureTest.php')
-rw-r--r-- | tests/Feature/ApplicationFeatureTest.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Feature/ApplicationFeatureTest.php b/tests/Feature/ApplicationFeatureTest.php new file mode 100644 index 00000000..fc6216f1 --- /dev/null +++ b/tests/Feature/ApplicationFeatureTest.php @@ -0,0 +1,14 @@ +<?php + +namespace Engelsystem\Test\Feature; + +use PHPUnit\Framework\TestCase; + +abstract class ApplicationFeatureTest extends TestCase +{ + public static function setUpBeforeClass() + { + $_SERVER['HTTP_HOST'] = 'foo.bar'; + require_once __DIR__ . '/../../includes/engelsystem.php'; + } +} |