Update model.toJSON.php
Update .travis.yml
Update model.toJSON.php
Merge pull request #2 from matthew-andrews/json

toJSON test wrong