diff --git a/.travis.yml b/.travis.yml index c92e2b88..508f6654 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,6 @@ php: - 5.6 - 7.0 - 7.1 - - hhvm env: - TEST_COMMAND="composer test" @@ -27,6 +26,8 @@ matrix: env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci" - php: 7.1 env: DEPENDENCIES=dev + - php: hhvm + dist: trusty # Test against LTS versions - php: 7.0 env: SYMFONY_VERSION=2.8.* diff --git a/Tests/Unit/Collector/FormatterTest.php b/Tests/Unit/Collector/FormatterTest.php index 0d18c9e3..ecc31582 100644 --- a/Tests/Unit/Collector/FormatterTest.php +++ b/Tests/Unit/Collector/FormatterTest.php @@ -82,10 +82,7 @@ public function testFormatHttpException() public function testFormatTransferException() { - $exception = $this->getMockBuilder(TransferException::class) - ->setConstructorArgs(['ExceptionMessage']) - ->getMock() - ; + $exception = new TransferException('ExceptionMessage'); $this->assertEquals('Transfer error: ExceptionMessage', $this->subject->formatException($exception)); }