| @@ 12-21 (lines=10) @@ | ||
| 9 | /** |
|
| 10 | * @test |
|
| 11 | */ |
|
| 12 | public function it_reflects_allowed_magic_methods() |
|
| 13 | { |
|
| 14 | $class = new \ReflectionClass('Fixtures\Prophecy\SpecialMethods'); |
|
| 15 | ||
| 16 | $mirror = new ClassMirror(); |
|
| 17 | ||
| 18 | $node = $mirror->reflect($class, array()); |
|
| 19 | ||
| 20 | $this->assertCount(7, $node->getMethods()); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @test |
|
| @@ 220-229 (lines=10) @@ | ||
| 217 | /** |
|
| 218 | * @test |
|
| 219 | */ |
|
| 220 | public function it_ignores_final_methods() |
|
| 221 | { |
|
| 222 | $class = new \ReflectionClass('Fixtures\Prophecy\WithFinalMethod'); |
|
| 223 | ||
| 224 | $mirror = new ClassMirror(); |
|
| 225 | ||
| 226 | $classNode = $mirror->reflect($class, array()); |
|
| 227 | ||
| 228 | $this->assertCount(0, $classNode->getMethods()); |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * @test |
|
| @@ 305-314 (lines=10) @@ | ||
| 302 | /** |
|
| 303 | * @test |
|
| 304 | */ |
|
| 305 | public function it_does_not_throw_exception_for_virtually_private_finals() |
|
| 306 | { |
|
| 307 | $class = new \ReflectionClass('Fixtures\Prophecy\WithFinalVirtuallyPrivateMethod'); |
|
| 308 | ||
| 309 | $mirror = new ClassMirror(); |
|
| 310 | ||
| 311 | $classNode = $mirror->reflect($class, array()); |
|
| 312 | ||
| 313 | $this->assertCount(0, $classNode->getMethods()); |
|
| 314 | } |
|
| 315 | ||
| 316 | /** |
|
| 317 | * @test |
|