Longman\TelegramBot\Tests\Unit\TelegramLogTest::testDebugStream PHP Метод

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

public testDebugStream ( )
    public function testDebugStream()
    {
        $file = $this->logfiles['debug'];
        $this->assertFileNotExists($file);
        TelegramLog::initDebugLog($file);
        TelegramLog::debug('my debug');
        $this->assertFileExists($file);
        $this->assertContains('bot_log.DEBUG: my debug', file_get_contents($file));
    }