1--TEST--
2ReflectionMethod::returnsReference()
3--FILE--
4<?php
5
6class TestClass {
7    public function &foo() {
8    }
9
10    private function bar() {
11    }
12}
13
14$methodInfo = ReflectionMethod::createFromMethodName('TestClass::foo');
15var_dump($methodInfo->returnsReference());
16
17$methodInfo = ReflectionMethod::createFromMethodName('TestClass::bar');
18var_dump($methodInfo->returnsReference());
19
20?>
21--EXPECT--
22bool(true)
23bool(false)
24