From 150ad19580f755c1f66cad4b3bb2a1dfbeee10c7 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Thu, 1 Sep 2016 11:19:42 +0900 Subject: [PATCH] Ask Travis to wait longer for PHPUnit to finish --- .travis.yml | 2 +- tests/PhpSpreadsheetTests/SampleTest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5bf19df4..ccab4af0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ script: ## PHP-CS-Fixer - ./vendor/bin/php-cs-fixer fix --diff --verbose ## PHPUnit - - ./vendor/bin/phpunit --coverage-clover coverage-clover.xml + - travis_wait 30 ./vendor/bin/phpunit --coverage-clover coverage-clover.xml after_script: - if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml ; fi diff --git a/tests/PhpSpreadsheetTests/SampleTest.php b/tests/PhpSpreadsheetTests/SampleTest.php index cd63b18f..1c35fa87 100644 --- a/tests/PhpSpreadsheetTests/SampleTest.php +++ b/tests/PhpSpreadsheetTests/SampleTest.php @@ -11,6 +11,10 @@ class SampleTest extends \PHPUnit_Framework_TestCase */ public function testSample($sample) { + // Suppress output to console + $this->setOutputCallback(function () { + }); + require $sample; }