| 12345678910111213141516171819202122232425262728293031 |
- <?php
- declare(strict_types=1);
- namespace SixShop\System;
- use PHPUnit\Framework\Attributes\Test;
- use PHPUnit\Framework\TestCase;
- class LogTest extends TestCase
- {
- private Log $log;
- protected function setUp(): void
- {
- $this->log = app()->make(Log::class, ['extensionID' => 'system'], true);
- }
- #[Test]
- public function debug()
- {
- $this->log->debug('test1');
- \think\facade\Log::debug('test2');
- }
- #[Test]
- public function feishu()
- {
- $this->log->error('test1');
- $this->log->error('test2');
- }
- }
|