public function LoggerInterfaceTest::testObjectCastToString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php \Psr\Log\Test\LoggerInterfaceTest::testObjectCastToString()
File
- vendor/
psr/ log/ Psr/ Log/ Test/ LoggerInterfaceTest.php, line 81
Class
- LoggerInterfaceTest
- Provides a base test class for ensuring compliance with the LoggerInterface
Namespace
Psr\Log\TestCode
public function testObjectCastToString() {
$dummy = $this
->getMock('Psr\\Log\\Test\\DummyTest', array(
'__toString',
));
$dummy
->expects($this
->once())
->method('__toString')
->will($this
->returnValue('DUMMY'));
$this
->getLogger()
->warning($dummy);
}