From 36c1b17777061fa94432f604bc4faff1e7966ae3 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 5 Jul 2016 17:52:32 +0200 Subject: [PATCH] that variable is required to suppress output when unit testing, also travis has composer preinstalled --- .travis.yml | 3 +-- tst/zerobin.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b96b1da..9ed482a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,7 @@ php: - hhvm before_script: - - curl -s http://getcomposer.org/installer | php - - php composer.phar install -n + - composer install -n script: - cd tst && ../vendor/bin/phpunit diff --git a/tst/zerobin.php b/tst/zerobin.php index 01f49f2..8b865fd 100644 --- a/tst/zerobin.php +++ b/tst/zerobin.php @@ -145,7 +145,7 @@ class zerobinTest extends PHPUnit_Framework_TestCase file_put_contents(CONF, ''); ob_start(); new zerobin; - ob_get_contents(); + $content = ob_get_contents(); } /**