Arthur Guiot Arthur Guiot - 1 year ago 93
PHP Question give me an error message

I have a problem, I'm using but, it always tell me that my build fail, and I don't know why.
Here is my GitHub project :

Answer Source

You haven't added phpunit's XML or anything. There are no test cases. This is the output in your Travis Job:

The command "phpunit" exited with 2.

You have to add the Test.php like this, but in your .travis.yml, there's nothing:

language: php
- 5.5
- 5.4
- hhvm
script: phpunit Test.php

You need to add the PHPUnit's configuration. Read more on how to integrate PHPUnit by looking at Building a PHP project.