Read only access to the session during testing.
array|nullReturns true if given variable name is set in session.
Returns given session variable, or all of them, if no parameters given.
__construct(array|null $session)
array|null $session Session data.
check(string|null $name = null): bool
Returns true if given variable name is set in session.
string|null $name optional Variable name to check for
boolread(string|null $name = null): mixed
Returns given session variable, or all of them, if no parameters given.
string|null $name optional The name of the session variable (or a path as sent to Hash.extract)
mixedarray|null
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.TestSuite.TestSession.html