Added test for conditional function definition

Ran PHP-CS-Fixer on Bolt CMS, and it turned out that it adds visibility to methods defined in conditionals when there's ```class``` word somewhere in the comments.
These tests cover this exact case and some adjacent cases.