Changes test to use getter instead of direct property access.
Changes test to use getter instead of direct property access.

Potherca/phpcodesniffer-composer-installer_issue-24,Potherca/phpcodesniffer-composer-installer_issue-24