Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function testWillInstantiateLocator() : void |
||
24 | { |
||
25 | $path = uniqid('path', true); |
||
26 | $locateSources = $this->createMock(LocateSources::class); |
||
27 | |||
28 | $locateSources |
||
29 | ->expects(self::atLeastOnce()) |
||
30 | ->method('__invoke') |
||
31 | ->with($path) |
||
32 | ->willReturn($this->createMock(SourceLocator::class)); |
||
33 | |||
34 | self::assertInstanceOf( |
||
35 | ClassReflector::class, |
||
36 | (new ComposerInstallationReflectorFactory($locateSources)) |
||
37 | ->__invoke($path, $this->createMock(SourceLocator::class)) |
||
38 | ); |
||
41 |