public function testReturnsReference($php, $expectingReturnsReference) { $reflector = new FunctionReflector(new StringSourceLocator($php)); $function = $reflector->reflect('foo'); $this->assertSame($expectingReturnsReference, $function->returnsReference()); }