Completed
Push — 6.13 ( 91a947...7c8b93 )
by
unknown
60:58
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 6.13.5, use createMock from PHPUnit package instead.
14
 */
15
trait PHPUnit5CompatTrait
16
{
17
    /**
18
     * @deprecated Since PHPUnit 5.4, marked as deprecated here to make it clear when working on 6.7/5.4 branches
19
     * {@inheritdoc}
20
     */
21
    public function getMock($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false, $callOriginalMethods = false, $proxyTarget = null)
22
    {
23
        return parent::getMock(
24
            $originalClassName,
25
            $methods,
26
            $arguments,
27
            $mockClassName,
28
            $callOriginalConstructor,
29
            $callOriginalClone,
30
            $callAutoload,
31
            $cloneArguments,
32
            $callOriginalMethods,
33
            $proxyTarget
34
        );
35
    }
36
}
37