PHP: fixed word completion after '='
PHP: added unit testings to test various scenarios of the word completion