Code Duplication    Length = 10-10 lines in 2 locations

tests/ErrorHandlerTest.php 2 locations

@@ 237-246 (lines=10) @@
234
        $errorHandler->log($exception);
235
    }
236
    
237
    public function testLogString()
238
    {
239
        $logger = $this->createMock(LoggerInterface::class);
240
        $logger->expects($this->once())->method('log')->with(LogLevel::WARNING, "Unable to log a string");
241
        
242
        $errorHandler = $this->errorHandler;
243
        $errorHandler->setLogger($logger);
244
245
        $errorHandler->log('foo');
246
    }
247
    
248
    public function testLogObject()
249
    {
@@ 248-257 (lines=10) @@
245
        $errorHandler->log('foo');
246
    }
247
    
248
    public function testLogObject()
249
    {
250
        $logger = $this->createMock(LoggerInterface::class);
251
        $logger->expects($this->once())->method('log')->with(LogLevel::WARNING, "Unable to log a stdClass object");
252
        
253
        $errorHandler = $this->errorHandler;
254
        $errorHandler->setLogger($logger);
255
256
        $errorHandler->log(new \stdClass());
257
    }
258
    
259
    
260
    public function testConverErrorsToExceptions()