Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrylinooo committed Jul 4, 2020
1 parent 623b346 commit 0994fce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Psr17/Utils/SuperGlobal.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static function mockCliEnvironment(array $server = []): void
];

if (defined('NO_MOCK_ENV')) {
$defaultServerParams = [];
$defaultServerParams = [];
}

$_SERVER = array_merge($defaultServerParams, $_SERVER, $server);
Expand Down
9 changes: 4 additions & 5 deletions tests/Psr17/Utils/SuperGlobalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@

namespace Shieldon\Test\Psr17\Utils;

use PHPUnit\Framework\TestCase;
use Shieldon\Psr17\Utils\SuperGlobal;

class SuperGlobalTest extends TestCase
class SuperGlobalTest extends \PHPUnit\Framework\TestCase
{
public function test_Static_extract()
{
$data = SuperGlobal::extract();
$_SERVER = [];

$data = \Shieldon\Psr17\Utils\SuperGlobal::extract();

$array = [
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9',
Expand Down

0 comments on commit 0994fce

Please sign in to comment.