| @@ 236-245 (lines=10) @@ | ||
| 233 | /** |
|
| 234 | * @test |
|
| 235 | */ |
|
| 236 | public function it_ignores_final_methods() |
|
| 237 | { |
|
| 238 | $class = new \ReflectionClass('Fixtures\Prophecy\WithFinalMethod'); |
|
| 239 | ||
| 240 | $mirror = new ClassMirror(); |
|
| 241 | ||
| 242 | $classNode = $mirror->reflect($class, array()); |
|
| 243 | ||
| 244 | $this->assertCount(0, $classNode->getMethods()); |
|
| 245 | } |
|
| 246 | ||
| 247 | /** |
|
| 248 | * @test |
|
| @@ 13-22 (lines=10) @@ | ||
| 10 | /** |
|
| 11 | * @test |
|
| 12 | */ |
|
| 13 | public function it_reflects_allowed_magic_methods() |
|
| 14 | { |
|
| 15 | $class = new \ReflectionClass('Fixtures\Prophecy\SpecialMethods'); |
|
| 16 | ||
| 17 | $mirror = new ClassMirror(); |
|
| 18 | ||
| 19 | $node = $mirror->reflect($class, array()); |
|
| 20 | ||
| 21 | $this->assertCount(7, $node->getMethods()); |
|
| 22 | } |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @test |
|
| @@ 320-329 (lines=10) @@ | ||
| 317 | /** |
|
| 318 | * @test |
|
| 319 | */ |
|
| 320 | public function it_does_not_throw_exception_for_virtually_private_finals() |
|
| 321 | { |
|
| 322 | $class = new \ReflectionClass('Fixtures\Prophecy\WithFinalVirtuallyPrivateMethod'); |
|
| 323 | ||
| 324 | $mirror = new ClassMirror(); |
|
| 325 | ||
| 326 | $classNode = $mirror->reflect($class, array()); |
|
| 327 | ||
| 328 | $this->assertCount(0, $classNode->getMethods()); |
|
| 329 | } |
|
| 330 | ||
| 331 | /** |
|
| 332 | * @test |
|