25 $handle = fopen(
'php://memory',
'a+');
32 $this->assertEquals(
'testtest2test3', fread($handle, 100));
40 $handle = fopen(
'php://memory',
'a+');
42 $this->assertTrue(is_resource($handle));
44 $this->assertFalse(is_resource($handle));
62 $temp = sys_get_temp_dir() . DIRECTORY_SEPARATOR .
'monolog_locked_log';
83 array(array(
'bogus://url')),
115 $handler =
new StreamHandler(
'ftp://foo/bar/baz/'.rand(0, 10000));
125 $handler =
new StreamHandler(sys_get_temp_dir().
'/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
135 $handler =
new StreamHandler(
'file://'.sys_get_temp_dir().
'/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
147 if (defined(
'PHP_WINDOWS_VERSION_BUILD')) {
148 $this->markTestSkipped(
'Permissions checks can not run on windows');
150 $handler =
new StreamHandler(
'/foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
162 if (defined(
'PHP_WINDOWS_VERSION_BUILD')) {
163 $this->markTestSkipped(
'Permissions checks can not run on windows');
165 $handler =
new StreamHandler(
'file:///foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
testWriteNonExistingAndNotCreatablePath()
Exception /There is no existing directory at/ Monolog::__construct Monolog::write ...
testWriteMissingResource()
LogicException Monolog::__construct Monolog::write
const DEBUG
Detailed debug information.
testWriteNonExistingFileResource()
Monolog::__construct Monolog::write
testClose()
Monolog::close
testWriteNonExistingResource()
UnexpectedValueException Monolog::__construct Monolog::write
invalidArgumentProvider()
testWriteInvalidResource()
UnexpectedValueException Monolog::__construct Monolog::write
testWriteNonExistingPath()
Monolog::__construct Monolog::write
getRecord($level=Logger::WARNING, $message='test', $context=array())
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...
testWriteCreatesTheStreamResource()
Monolog::write
testWriteLocking()
Monolog::__construct Monolog::write
testWrite()
Monolog::__construct Monolog::write
const WARNING
Exceptional occurrences that are not errors.
Stores to any stream resource.
testWriteNonExistingAndNotCreatableFileResource()
Exception /There is no existing directory at/ Monolog::__construct Monolog::write ...
testWriteInvalidArgument($invalidArgument)
invalidArgumentProvider InvalidArgumentException Monolog::__construct