From ebce062f634d883410c5b5353421662e324ff238 Mon Sep 17 00:00:00 2001 From: Danack Date: Wed, 19 Nov 2014 19:03:31 +0000 Subject: [PATCH] Added check to stop myself being confused by the tests not running. --- test/bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/bootstrap.php b/test/bootstrap.php index 9493807..d57362a 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -4,6 +4,12 @@ use Auryn\Provider; error_reporting(E_ALL); +if (ini_get('opcache.enable') == true && + ini_get('opcache.save_comments') == false) { + echo "Cannot run tests. OPCache is enabled and is stripping comments, which are required by PHPUnit to provide data for the tests.\n"; + exit(-1); +} + function createProvider($implementations = [], $shareClasses = []) { $provider = new Provider();