Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of PHPUnit.
4
 *
5
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PHPUnit\Framework\MockObject;
11
 
12
use function call_user_func_array;
13
use function func_get_args;
14
use PHPUnit\Framework\MockObject\Rule\AnyInvokedCount;
15
 
16
/**
17
 * @internal This trait is not covered by the backward compatibility promise for PHPUnit
18
 */
19
trait Method
20
{
21
    public function method()
22
    {
23
        $expects = $this->expects(new AnyInvokedCount);
24
 
25
        return call_user_func_array(
26
            [$expects, 'method'],
27
            func_get_args()
28
        );
29
    }
30
}