| Total Lines | 19 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | public function test_get_using_custom_reader(): void  | 
            ||
| 38 |     { | 
            ||
| 39 | $this->config->setConfigReaders([  | 
            ||
| 40 |             Config\GacelaJsonConfigItem::DEFAULT_TYPE => new class() implements ConfigReaderInterface { | 
            ||
| 41 | public function read(string $absolutePath): array  | 
            ||
| 42 |                 { | 
            ||
| 43 | return ['key' => 'value'];  | 
            ||
| 44 | }  | 
            ||
| 45 | |||
| 46 | public function canRead(string $absolutePath): bool  | 
            ||
| 47 |                 { | 
            ||
| 48 | return true;  | 
            ||
| 49 | }  | 
            ||
| 50 | },  | 
            ||
| 51 | ]);  | 
            ||
| 52 | |||
| 53 | $this->config->init();  | 
            ||
| 54 | |||
| 55 |         self::assertSame('value', $this->config->get('key')); | 
            ||
| 56 | }  | 
            ||
| 58 |