| @@ 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 |
|
| @@ 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 |
|
| @@ 321-330 (lines=10) @@ | ||
| 318 | /** |
|
| 319 | * @test |
|
| 320 | */ |
|
| 321 | public function it_does_not_throw_exception_for_virtually_private_finals() |
|
| 322 | { |
|
| 323 | $class = new \ReflectionClass('Fixtures\Prophecy\WithFinalVirtuallyPrivateMethod'); |
|
| 324 | ||
| 325 | $mirror = new ClassMirror(); |
|
| 326 | ||
| 327 | $classNode = $mirror->reflect($class, array()); |
|
| 328 | ||
| 329 | $this->assertCount(0, $classNode->getMethods()); |
|
| 330 | } |
|
| 331 | ||
| 332 | /** |
|
| 333 | * @test |
|