Test 1
Ensure there are no occurrences of get_collapsing_icon() being used in core (does not include the function declaration).
Test 2
Add the attached test.php file to your wwwroot directory.
Visit this file via your web browser and ensure a meaningful coding exception is thrown.