getcwd
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the current working directory
getcwd
():
string
|
false
'REQUEST_TIME'
=>
time
(),
'REQUEST_TIME_FLOAT'
=>
microtime
(
true
),
'QUERY_STRING'
=>
$event
->
getQueryString
(),
'DOCUMENT_ROOT'
=>
getcwd
(),
'REQUEST_URI'
=>
$event
->
getUri
(),
'REMOTE_ADDR'
=>
$event
->
getSourceIp
(),
];
src/Event/Http/Psr7Bridge.php
if (!
$this
->
directory
) {
$this
->
directory
=
getcwd
();
}
}
src/Runtime/FileHandlerLocator.php
public function
testĀ defaultĀ container
():
void
{
$_SERVER
[
'LAMBDA_TASK_ROOT'
] =
getcwd
();
$this
->
assertInstanceOf
(
FileHandlerLocator
::class,
Bref
::
getContainer
());
}
tests/BrefTest.php