Fix invalid PHP constants.

Some class constants were invalid PHP.

For example,

const NEW='new';

All constants are now prefixed with C_

For example,

const C_NEW='new';

In addition there is now phpunit tests for enum classes. This
should have been done from the start as running the tests would have
found this issue sooner.
Merge branch 'enums' into develop