public function testGetLocatedSource()
{
$node = new Function_('foo');
$locatedSource = new LocatedSource('<?php function foo() {}', null);
$reflector = new FunctionReflector(new StringSourceLocator('<?php'));
$functionInfo = ReflectionFunction::createFromNode($reflector, $node, $locatedSource);
$this->assertSame($locatedSource, $functionInfo->getLocatedSource());
}