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

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

    public function testApiCritical_CallsMethodOnModel()
    {
        $logger = $this->createLoggerMock();
        $message = 'message';
        $context = ['a' => 'A'];
        $result = true;
        $this->expect('critical', [$message, $context])->willReturn($result);
        $this->assertSame($result, $logger->critical($message, $context));
    }