"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php" between
glpi-9.3.3.tgz and glpi-9.4.0.tgz

About: GLPI is an IT and asset management software (Information Resource Manager).

LoggerInterfaceTest.php  (glpi-9.3.3.tgz):LoggerInterfaceTest.php  (glpi-9.4.0.tgz)
skipping to change at line 104 skipping to change at line 104
->will($this->returnValue('DUMMY')); ->will($this->returnValue('DUMMY'));
$this->getLogger()->warning($dummy); $this->getLogger()->warning($dummy);
$expected = array('warning DUMMY'); $expected = array('warning DUMMY');
$this->assertEquals($expected, $this->getLogs()); $this->assertEquals($expected, $this->getLogs());
} }
public function testContextCanContainAnything() public function testContextCanContainAnything()
{ {
$closed = fopen('php://memory', 'r');
fclose($closed);
$context = array( $context = array(
'bool' => true, 'bool' => true,
'null' => null, 'null' => null,
'string' => 'Foo', 'string' => 'Foo',
'int' => 0, 'int' => 0,
'float' => 0.5, 'float' => 0.5,
'nested' => array('with object' => new DummyTest), 'nested' => array('with object' => new DummyTest),
'object' => new \DateTime, 'object' => new \DateTime,
'resource' => fopen('php://memory', 'r'), 'resource' => fopen('php://memory', 'r'),
'closed' => $closed,
); );
$this->getLogger()->warning('Crazy context data', $context); $this->getLogger()->warning('Crazy context data', $context);
$expected = array('warning Crazy context data'); $expected = array('warning Crazy context data');
$this->assertEquals($expected, $this->getLogs()); $this->assertEquals($expected, $this->getLogs());
} }
public function testContextExceptionKeyCanBeExceptionOrOtherValues() public function testContextExceptionKeyCanBeExceptionOrOtherValues()
{ {
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)