Simplify setting `php-file-patterns` with `mapc`

Rather than a `while` loop, use the functionalerific `mapc` to add file-name
patterns to `auto-mode-alist`.

Signed-off-by: Eric James Michael Ritz <lobbyjones@gmail.com>
Define `php-mode-map` in a `defvar`, as is the recommended style.

See Tips for Defining(elisp).

Signed-off-by: Eric James Michael Ritz <lobbyjones@gmail.com>
Create ERT-based test for issue #9.

This allows regression testing without needing manual inspection.
ERT test for issue #8.
ERT tests for issues 14, 16, and 18
ERT test for ejmr/php-mode#19
Require `php-mode` in `php-mode-test.el`, duh.
ERT tests for remaining example files.

This should close ejmr/php-mode#60
Mark tests 9, 14, and 19 as expected failures.

This makes all tests pass or fail expectedly for the current version. As bugs
are fixed, the expectation of failure can be removed.