get_current_user
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the name of the owner of the current PHP script
get_current_user
():
string
private function
assertCommonServerVariables
(array
$response
, array
$expectedGlobalVariables
): array
{
$expectedCommonVariables
= [
'USER'
=>
get_current_user
(),
'SERVER_PROTOCOL'
=>
'HTTP/1.1'
,
'SERVER_NAME'
=>
'localhost'
,
'SERVER_ADDR'
=>
'127.0.0.1'
,
tests/Handler/FpmHandlerTest.php