-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cff3c4a
commit 4908798
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/Framework/MockObject/Exception/NoMoreReturnValuesConfiguredException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Framework\MockObject; | ||
|
||
use function sprintf; | ||
|
||
/** | ||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||
* | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class NoMoreReturnValuesConfiguredException extends \PHPUnit\Framework\Exception implements Exception | ||
{ | ||
public function __construct(Invocation $invocation, int $numberOfConfiguredReturnValues) | ||
{ | ||
parent::__construct( | ||
sprintf( | ||
'Only %d return values have been configured for %s::%s()', | ||
$numberOfConfiguredReturnValues, | ||
$invocation->className(), | ||
$invocation->methodName(), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters