Fixed compatibility with PHPUnit 4.1

Interface changed in https://github.com/sebastianbergmann/phpunit/commit/f0322b6978bc2b6fd9a17f499950a4b023ef3db4
Merge pull request #376 from mhujer/phpunit41

Fixed compatibility with PHPUnit 4.1
Patch for potential Sql injection in ORDER()
CS fixes (elseif, indentiation, trailing whitespace)
Merge branch 'security/zf2014-04'

ZF2014-04: Potential SQL injection vector via ORDER clause
[1.12.7] Release readiness

- Updated VERSION constant to 1.12.7
- Added release notes to README.md
Merge branch 'releases/1.12.7'

1.12.7 readiness
Bump version

to 1.12.8dev
Merge branch 'version/bump'

Bump to 1.12.8dev