File: autoload.php

package info (click to toggle)
php-mock-integration 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152 kB
  • sloc: php: 183; makefile: 18; sh: 7; xml: 7
file content (25 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php // phpcs:ignore

use PHPUnit\Runner\Version;

// Compatibility with PHPUnit 8.0+
// We need to use "magic" trait \phpmock\integration\TestCaseTrait
// and instead of setUp/tearDown method in test case
// we should have setUpCompat/tearDownCompat.
if (class_exists(Version::class)
    && version_compare(Version::id(), '8.0.0') >= 0
) {
    class_alias(\phpmock\integration\TestCaseTypeHintTrait::class, \phpmock\integration\TestCaseTrait::class);
} else {
    class_alias(\phpmock\integration\TestCaseNoTypeHintTrait::class, \phpmock\integration\TestCaseTrait::class);
}

function f0()
{
}
function f1($a)
{
}
function f2($a, $b)
{
}