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));
testWriteMissingResource()
@expectedException LogicException @covers Monolog\Handler\StreamHandler::__construct @covers Monolog\...
testClose()
@covers Monolog\Handler\StreamHandler::close
testWrite()
@covers Monolog\Handler\StreamHandler::__construct @covers Monolog\Handler\StreamHandler::write
testWriteInvalidArgument($invalidArgument)
@dataProvider invalidArgumentProvider @expectedException InvalidArgumentException @covers Monolog\Han...
testWriteNonExistingAndNotCreatableFileResource()
@expectedException Exception @expectedExceptionMessageRegExp /There is no existing directory at/ @cov...
testWriteLocking()
@covers Monolog\Handler\StreamHandler::__construct @covers Monolog\Handler\StreamHandler::write
testWriteNonExistingPath()
@covers Monolog\Handler\StreamHandler::__construct @covers Monolog\Handler\StreamHandler::write
testWriteNonExistingAndNotCreatablePath()
@expectedException Exception @expectedExceptionMessageRegExp /There is no existing directory at/ @cov...
invalidArgumentProvider()
testWriteNonExistingFileResource()
@covers Monolog\Handler\StreamHandler::__construct @covers Monolog\Handler\StreamHandler::write
testWriteNonExistingResource()
@expectedException UnexpectedValueException @covers Monolog\Handler\StreamHandler::__construct @cover...
testWriteCreatesTheStreamResource()
@covers Monolog\Handler\StreamHandler::write
testWriteInvalidResource()
@expectedException UnexpectedValueException @covers Monolog\Handler\StreamHandler::__construct @cover...
Stores to any stream resource.
const WARNING
Exceptional occurrences that are not errors.
const DEBUG
Detailed debug information.
getRecord($level=Logger::WARNING, $message='test', $context=array())