|
@@ 127-138 (lines=12) @@
|
| 124 |
|
/** |
| 125 |
|
* @return FunctionReflectionInterface|PHPUnit_Framework_MockObject_MockObject |
| 126 |
|
*/ |
| 127 |
|
private function getFunctionReflectionMock() |
| 128 |
|
{ |
| 129 |
|
$reflectionFunctionMock = $this->createMock(FunctionReflectionInterface::class); |
| 130 |
|
$reflectionFunctionMock->method('isDocumented') |
| 131 |
|
->willReturn(true); |
| 132 |
|
$reflectionFunctionMock->method('getPseudoNamespaceName') |
| 133 |
|
->willReturn('SomeNamespace'); |
| 134 |
|
$reflectionFunctionMock->method('getShortName') |
| 135 |
|
->willReturn('SomeShortClass'); |
| 136 |
|
|
| 137 |
|
return $reflectionFunctionMock; |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
/** |
| 141 |
|
* @return ConstantReflectionInterface|PHPUnit_Framework_MockObject_MockObject |
|
@@ 143-154 (lines=12) @@
|
| 140 |
|
/** |
| 141 |
|
* @return ConstantReflectionInterface|PHPUnit_Framework_MockObject_MockObject |
| 142 |
|
*/ |
| 143 |
|
private function getConstantReflectionMock() |
| 144 |
|
{ |
| 145 |
|
$constantReflectionMock = $this->createMock(ConstantReflectionInterface::class); |
| 146 |
|
$constantReflectionMock->method('isDocumented') |
| 147 |
|
->willReturn(true); |
| 148 |
|
$constantReflectionMock->method('getPseudoNamespaceName') |
| 149 |
|
->willReturn('SomeNamespace'); |
| 150 |
|
$constantReflectionMock->method('getShortName') |
| 151 |
|
->willReturn('SomeShortClass'); |
| 152 |
|
|
| 153 |
|
return $constantReflectionMock; |
| 154 |
|
} |
| 155 |
|
} |
| 156 |
|
|