Update dev requirements and test suite for PHP 7+ only

This commit is contained in:
Ben Ramsey
2017-11-08 16:25:08 -06:00
parent 049d5acf7a
commit 5d7ee63f1c
28 changed files with 206 additions and 191 deletions
+24
View File
@@ -8,6 +8,30 @@ use AspectMock\Kernel;
require_once __DIR__ . '/../vendor/autoload.php'; // composer autoload
require_once __DIR__ . '/phpstan-bootstrap.php';
if (!function_exists('uuid_create')) {
// Create stub of method so AspectMock can mock this function
// if it doesn't exist in PHP.
function uuid_create()
{
}
}
if (!function_exists('uuid_parse')) {
// Create stub of method so AspectMock can mock this function
// if it doesn't exist in PHP.
function uuid_parse()
{
}
}
if (!defined('UUID_TYPE_TIME')) {
define('UUID_TYPE_TIME', 1);
}
if (!defined('UUID_TYPE_RANDOM')) {
define('UUID_TYPE_RANDOM', 4);
}
$kernel = Kernel::getInstance();
$kernel->init([
'debug' => true,