We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebe3a8 commit d6f3561Copy full SHA for d6f3561
Psr/Log/Test/LoggerInterfaceTest.php
@@ -101,6 +101,9 @@ public function testObjectCastToString()
101
102
public function testContextCanContainAnything()
103
{
104
+ $closed = fopen('php://memory', 'r');
105
+ fclose($closed);
106
+
107
$context = array(
108
'bool' => true,
109
'null' => null,
@@ -110,6 +113,7 @@ public function testContextCanContainAnything()
110
113
'nested' => array('with object' => new DummyTest),
111
114
'object' => new \DateTime,
112
115
'resource' => fopen('php://memory', 'r'),
116
+ 'closed' => $closed,
117
);
118
119
$this->getLogger()->warning('Crazy context data', $context);
0 commit comments