Kraken\_Unit\Log\LoggerTest::testApiInfo_ThrowsException_WhenModelThrowsException PHP Метод

testApiInfo_ThrowsException_WhenModelThrowsException() публичный Метод

    public function testApiInfo_ThrowsException_WhenModelThrowsException()
    {
        $logger = $this->createLoggerMock();
        $message = 'message';
        $context = ['a' => 'A'];
        $ex = new Exception();
        $this->setExpectedException(WriteException::class);
        $this->expect('info', [$message, $context])->willThrow($ex);
        $logger->info($message, $context);
    }