| @@ 92-100 (lines=9) @@ | ||
| 89 | ); |
|
| 90 | } |
|
| 91 | ||
| 92 | private function getReflectionFactory(): ReflectionFactory |
|
| 93 | { |
|
| 94 | $parserStoragetMock = $this->createMock(ParserStorageInterface::class); |
|
| 95 | $configurationMock = $this->createMock(ConfigurationInterface::class); |
|
| 96 | $configurationMock->method('getVisibilityLevel') |
|
| 97 | ->willReturn(1); |
|
| 98 | ||
| 99 | return new ReflectionFactory($configurationMock, $parserStoragetMock); |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| @@ 36-43 (lines=8) @@ | ||
| 33 | $this->assertTrue($this->reflectionFunction->isDocumented()); |
|
| 34 | } |
|
| 35 | ||
| 36 | private function getReflectionFactory(): ReflectionFactoryInterface |
|
| 37 | { |
|
| 38 | $parserStorageMock = $this->createMock(ParserStorageInterface::class); |
|
| 39 | $configurationMock = $this->createMock(ConfigurationInterface::class); |
|
| 40 | $configurationMock->method('getVisibilityLevel') |
|
| 41 | ->willReturn(ReflectionProperty::IS_PUBLIC); |
|
| 42 | return new ReflectionFactory($configurationMock, $parserStorageMock); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||