PHP spec and example classes

Added a few example classes and the corresponding phpspec tests.