Completed
Push — master ( 03a7f8...6efe17 )
by
unknown
37:52 queued 18:09
created

PHPUnit5CompatTrait::createMock()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
1
<?php
2
/**
3
 * File containing PHPUnit 5 Forward Compatibility trait.
4
 *
5
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
6
 * @license For full copyright and license information view LICENSE file distributed with this source code.
7
 */
8
namespace eZ\Publish\Core\Base\Tests;
9
10
/**
11
 * Trait for PHPUnit 5 Forward Compatibility, for PHPUnit 4.8 use and up.
12
 *
13
 * @deprecated since 7.1, will be removed in 8.0. We are using PHPUnit 6, so this trait is obsolete.
14
 * Trait was used with PHPUnit v5 and v4, so basically trait can be removed when support period for 6.7 ends.
15
 */
16
trait PHPUnit5CompatTrait
17
{
18
    /**
19
     * @deprecated Since PHPUnit 5.4, marked as deprecated here to make it clear when working on 6.7/5.4 branches
20
     * {@inheritdoc}
21
     */
22
    public function getMock($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false, $callOriginalMethods = false, $proxyTarget = null)
23
    {
24
        return parent::getMock(
25
            $originalClassName,
26
            $methods,
27
            $arguments,
28
            $mockClassName,
29
            $callOriginalConstructor,
30
            $callOriginalClone,
31
            $callAutoload,
32
            $cloneArguments,
33
            $callOriginalMethods,
34
            $proxyTarget
35
        );
36
    }
37
}
38