File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ before_script:
12
12
- composer self-update
13
13
- composer install --no-interaction --prefer-source --dev
14
14
15
- script : ./phpunit --configuration ./build/travis-ci.xml
15
+ script :
16
+ - ./phpunit --configuration ./build/travis-ci.xml
17
+ - ./phpunit --configuration ./build/travis-ci-fail.xml > /dev/null; if [ $? -eq 0 ]; then echo "SHOULD FAIL"; exit 1; else echo "fail checked"; fi;
16
18
17
19
notifications :
18
20
email : false
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/4.2/phpunit.xsd"
4
+ bootstrap =" ../tests/bootstrap-travis.php"
5
+ backupGlobals =" false"
6
+ verbose =" true" >
7
+ <testsuites >
8
+ <testsuite name =" small" >
9
+ <directory suffix =" .phpt" >../tests/Fail</directory >
10
+ </testsuite >
11
+ </testsuites >
12
+
13
+ <php >
14
+ <const name =" PHPUNIT_TESTSUITE" value =" true" />
15
+ </php >
16
+ </phpunit >
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ // This test intentionally fails and it is checked by Travis.
3
+ --FILE--
4
+ --EXPECTF--
5
+ unexpected
You can’t perform that action at this time.
0 commit comments