| Conditions | 1 | 
| Total Lines | 27 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 26 | public function testRotateHandler(): void  | 
            ||
| 27 |     { | 
            ||
| 28 | $container = new Container();  | 
            ||
| 29 | $container->bind(ConfiguratorInterface::class, new ConfigManager(  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 30 |             new class() implements LoaderInterface { | 
            ||
| 31 | public function has(string $section): bool  | 
            ||
| 32 |                 { | 
            ||
| 33 | return false;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | public function load(string $section): array  | 
            ||
| 37 |                 { | 
            ||
| 38 | return [];  | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 41 | ));  | 
            ||
| 42 | $container->get(BootloadManager::class)->bootload([MonologBootloader::class]);  | 
            ||
| 43 | |||
| 44 |         $autowire = new Container\Autowire('log.rotate', [ | 
            ||
| 45 | 'filename' => 'monolog.log'  | 
            ||
| 46 | ]);  | 
            ||
| 47 | |||
| 48 | /** @var RotatingFileHandler $handler */  | 
            ||
| 49 | $handler = $autowire->resolve($container);  | 
            ||
| 50 | $this->assertInstanceOf(RotatingFileHandler::class, $handler);  | 
            ||
| 51 | |||
| 52 | $this->assertSame(Logger::DEBUG, $handler->getLevel());  | 
            ||
| 53 | }  | 
            ||
| 55 |