<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\MockObject\Stub;
use PHPUnit\Framework\MockObject\Invocation;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
*/
interface Stub
{
/**
* Fakes the processing of the invocation $invocation by returning a
* specific value.
*/
public function invoke(Invocation $invocation): mixed;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ConsecutiveCalls.php | File | 1.45 KB | 0644 |
|
| Exception.php | File | 900 B | 0644 |
|
| ReturnArgument.php | File | 893 B | 0644 |
|
| ReturnCallback.php | File | 946 B | 0644 |
|
| ReturnReference.php | File | 836 B | 0644 |
|
| ReturnSelf.php | File | 801 B | 0644 |
|
| ReturnStub.php | File | 818 B | 0644 |
|
| ReturnValueMap.php | File | 1.24 KB | 0644 |
|
| Stub.php | File | 744 B | 0644 |
|