Environement : Unit Tests in Symfony 3.0 + PHP 5.6
After following the official Blackfire phpunit documentation for setting up environment and writing a test, running a unit test using phpunit will cause an error.
php-sdk/src/Blackfire/Bridge/PhpUnit/TestConstraint.php Line 69
(PHP_VERSION_ID > 70100) returns false so normally we will not use code inside that block but that code is not compatible with PHP 5 and always causes ERROR when parsing the TestConstraint.php file.
Environement : Unit Tests in Symfony 3.0 + PHP 5.6
After following the official Blackfire phpunit documentation for setting up environment and writing a test, running a unit test using phpunit will cause an error.
php-sdk/src/Blackfire/Bridge/PhpUnit/TestConstraint.php Line 69
(PHP_VERSION_ID > 70100) returns false so normally we will not use code inside that block but that code is not compatible with PHP 5 and always causes ERROR when parsing the TestConstraint.php file.