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\Builder;
11
 
12
use PHPUnit\Framework\MockObject\Stub\Stub;
13
use Throwable;
14
 
15
/**
16
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
17
 */
18
interface InvocationStubber
19
{
20
    public function will(Stub $stub): Identity;
21
 
22
    /** @return self */
23
    public function willReturn($value, ...$nextValues)/*: self */;
24
 
25
    /**
26
     * @param mixed $reference
27
     *
28
     * @return self
29
     */
30
    public function willReturnReference(&$reference)/*: self */;
31
 
32
    /**
33
     * @param array<int, array<int, mixed>> $valueMap
34
     *
35
     * @return self
36
     */
37
    public function willReturnMap(array $valueMap)/*: self */;
38
 
39
    /**
40
     * @param int $argumentIndex
41
     *
42
     * @return self
43
     */
44
    public function willReturnArgument($argumentIndex)/*: self */;
45
 
46
    /**
47
     * @param callable $callback
48
     *
49
     * @return self
50
     */
51
    public function willReturnCallback($callback)/*: self */;
52
 
53
    /** @return self */
54
    public function willReturnSelf()/*: self */;
55
 
56
    /**
57
     * @param mixed $values
58
     *
59
     * @return self
60
     */
61
    public function willReturnOnConsecutiveCalls(...$values)/*: self */;
62
 
63
    /** @return self */
64
    public function willThrowException(Throwable $exception)/*: self */;
65
}