LogTest.php 450 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\System;
  4. use PHPUnit\Framework\Attributes\Test;
  5. use PHPUnit\Framework\TestCase;
  6. class LogTest extends TestCase
  7. {
  8. private Log $log;
  9. protected function setUp(): void
  10. {
  11. $this->log = app()->make(Log::class, ['extensionID' => 'system'], true);
  12. }
  13. #[Test]
  14. public function debug()
  15. {
  16. $this->log->debug('test1');
  17. \think\facade\Log::debug('test2');
  18. }
  19. }