| @@ 45-54 (lines=10) @@ | ||
| 42 | /** |
|
| 43 | * @return PHPUnit_Framework_MockObject_MockObject|ClassReflectionInterface |
|
| 44 | */ |
|
| 45 | private function createClassReflectionMock() |
|
| 46 | { |
|
| 47 | $classReflectionMock = $this->createMock(ClassReflectionInterface::class); |
|
| 48 | $classReflectionMock->method('getName') |
|
| 49 | ->willReturn('SomeClass'); |
|
| 50 | $classReflectionMock->method('isDocumented') |
|
| 51 | ->willReturn(true); |
|
| 52 | ||
| 53 | return $classReflectionMock; |
|
| 54 | } |
|
| 55 | } |
|
| 56 | ||
| @@ 65-75 (lines=11) @@ | ||
| 62 | /** |
|
| 63 | * @return PHPUnit_Framework_MockObject_MockObject|ClassReflectionInterface |
|
| 64 | */ |
|
| 65 | private function createParentClassReflectionMock() |
|
| 66 | { |
|
| 67 | $parentClassReflectionMock = $this->createMock(ClassReflectionInterface::class); |
|
| 68 | $parentClassReflectionMock->method('getName') |
|
| 69 | ->willReturn('SomeClass'); |
|
| 70 | ||
| 71 | $parentClassReflectionMock->method('isDocumented') |
|
| 72 | ->willReturn(true); |
|
| 73 | ||
| 74 | return $parentClassReflectionMock; |
|
| 75 | } |
|
| 76 | } |
|
| 77 | ||