Issues (24)

tests/src/ManagerTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Nip\Logger\Tests;
4
5
use Nip\Logger\Logger;
6
use Monolog\Logger as Monolog;
7
8
/**
9
 * Class ManagerTest
10
 * @package Nip\Logger\Tests
11
 */
12
class ManagerTest extends AbstractTest
13
{
14
    public function test_driver_init_default()
15
    {
16
        $manager = $this->generateBaseManager();
17
18
        $driver = $manager->driver();
19
        self::assertInstanceOf(Logger::class, $driver);
20
21
        $logger = $driver->getLogger();
0 ignored issues
show
The method getLogger() does not exist on Psr\Log\LoggerInterface. It seems like you code against a sub-type of Psr\Log\LoggerInterface such as Psr\Log\Test\TestLogger or Nip\Logger\Logger. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
        /** @scrutinizer ignore-call */ 
22
        $logger = $driver->getLogger();
Loading history...
22
        self::assertInstanceOf(Monolog::class, $logger);
23
    }
24
}
25