theseer / phpdox

Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
http://phpdox.de
Other
601 stars 121 forks source link

Fix unit tests and travis cfg #382

Closed Qusonann closed 4 years ago

Qusonann commented 4 years ago

Hola! I checked out the project, and for some reason tests failed for me. The couple of tests I deleted rely on deprecated phpunit features and test implementation details, that's a bad practice as @sebastianbergmann says (see https://github.com/sebastianbergmann/phpunit/issues/3339 ), so I removed them. The third one, tests/data/coverage/PHPUnitEnricherTest.php, hasn't been updated since 2015 (according to git blame) and has strange echo call at the end (was that really planned to be tested that way?), I fixed data file path and removed the echo call. Also, fixed travis build cfg (it needs ant to be installed).