| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | public function test_can_ask_for_custom_implementation() |
||
| 20 | { |
||
| 21 | Component::extend('custom', function ($folder) { |
||
|
|
|||
| 22 | return [ |
||
| 23 | new FlystemProvider(new DiskResolverCollection) |
||
| 24 | ]; |
||
| 25 | }); |
||
| 26 | |||
| 27 | $component = Component::custom(new DefaultFolderStructure('/')); |
||
| 28 | |||
| 29 | $this->assertEquals('custom', $component->getImplementation()); |
||
| 30 | $this->assertInstanceOf(Component::class, $component); |
||
| 31 | $this->assertCount(1, $component->getProviders()); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.