Output PHP version before running PHPUnit tests
authorKunal Mehta <legoktm@member.fsf.org>
Mon, 8 Feb 2016 01:24:52 +0000 (17:24 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Mon, 8 Feb 2016 01:43:33 +0000 (17:43 -0800)
For sanity checking CI changes, as well as to match the PHPUnit
version output.

Change-Id: Ib807f8650992adada97226cd96282484392f71e8

tests/phpunit/phpunit.php

index 0ae0b21..673bb2d 100755 (executable)
@@ -302,4 +302,8 @@ if ( $puVersion !== '@package_version@' && version_compare( $puVersion, '3.7.0',
        exit( 1 );
 }
 
+echo defined( 'HHVM_VERSION' ) ?
+       'Using HHVM ' . HHVM_VERSION . ' (' . PHP_VERSION . ")\n" :
+       'Using PHP ' . PHP_VERSION . "\n";
+
 PHPUnit_TextUI_Command::main();