Add .travis.yml. Up to PHPUnit 3.7.21. Small fixes. Fix old and add new tests.