Added phpspec for testing and Environment Class