1--TEST--
2ReflectionMethod::invoke() on an abstract method should fail even after calling setAccessible(true)
3--FILE--
4<?php
5
6abstract class Test {
7    abstract static function foo();
8}
9
10$rm = new ReflectionMethod('Test', 'foo');
11$rm->setAccessible(true);
12try {
13    var_dump($rm->invoke(null));
14} catch (ReflectionException $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20Trying to invoke abstract method Test::foo()
21