public function LoggerInterfaceTest::testObjectCastToString in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Psr/Log/Test/LoggerInterfaceTest.php \Psr\Log\Test\LoggerInterfaceTest::testObjectCastToString()
File
- lib/
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);
}