©
このドキュメントでは、php中国語ネットマニュアルリリース
Mock implementation of$log
that gathers all logged messages in arrays (one array per logging level). These arrays are exposed aslogs
property of each of the level-specific log function,例如 for levelerror
the array is exposed as$log.error.logs
.
reset();
Reset all of the logging arrays to empty.
assertEmpty();
Assert that the all of the logging methods have no logged messages. If messages present, an exception is thrown.
log.logs
Array of messages logged using |
info.logs
Array of messages logged using |
warn.logs
Array of messages logged using |
error.logs
Array of messages logged using |
debug.logs
Array of messages logged using |