PHPUnit_Framework_TestCase
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 0
dl 0
loc 3
c 0
b 0
f 0
1
<?php
2
/**
3
 * Multi-factor authentication for Yii2 projects
4
 *
5
 * @link      https://github.com/hiqdev/yii2-mfa
6
 * @package   yii2-mfa
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2018, HiQDev (http://hiqdev.com/)
9
 */
10
error_reporting(E_ALL & ~E_NOTICE);
11
12
$bootstrap = __DIR__ . '/../src/_bootstrap.php';
13
14
require_once file_exists($bootstrap) ? $bootstrap : __DIR__ . '/../vendor/autoload.php';
15
16
/*
17
 * Ensures compatibility with PHPUnit 6.x
18
 */
19
if (!class_exists('PHPUnit_Framework_Constraint') && class_exists('PHPUnit\Framework\Constraint\Constraint')) {
20
    abstract class PHPUnit_Framework_Constraint extends \PHPUnit\Framework\Constraint\Constraint
21
    {
22
    }
23
}
24
if (!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) {
25
    abstract class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase
26
    {
27
    }
28
}
29