public function testRemoveReturnType()
{
$reflector = new FunctionReflector(new SingleFileSourceLocator(__DIR__ . '/../Fixture/Php7ReturnTypeDeclarations.php'));
$functionInfo = $reflector->reflect('returnsString');
$functionInfo->removeReturnType();
$this->assertNull($functionInfo->getReturnType());
$this->assertNotContains(': string', (new StandardPrettyPrinter())->prettyPrint([$functionInfo->getAst()]));
}