REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 2.78 KB
Close
/home/getspomw/itechservicellc.com/vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Api/MockObjectApi.php
Text
Base64
<?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; use function assert; use PHPUnit\Event\Code\NoTestCaseObjectOnCallStackException; use PHPUnit\Event\Code\TestMethodBuilder; use PHPUnit\Event\Facade as EventFacade; use PHPUnit\Framework\MockObject\Builder\InvocationMocker as InvocationMockerBuilder; use PHPUnit\Framework\MockObject\Rule\InvocationOrder; /** * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait MockObjectApi { /** @noinspection MagicMethodsValidityInspection */ public function __phpunit_hasMatchers(): bool { return $this->__phpunit_getInvocationHandler()->hasMatchers(); } /** @noinspection MagicMethodsValidityInspection */ public function __phpunit_verify(bool $unsetInvocationMocker = true): void { $this->__phpunit_getInvocationHandler()->verify(); if ($unsetInvocationMocker) { $this->__phpunit_unsetInvocationMocker(); } } abstract public function __phpunit_state(): TestDoubleState; abstract public function __phpunit_getInvocationHandler(): InvocationHandler; abstract public function __phpunit_unsetInvocationMocker(): void; public function expects(InvocationOrder $matcher): InvocationMockerBuilder { assert($this instanceof StubInternal); if (!$this->__phpunit_wasGeneratedAsMockObject()) { $message = 'Expectations configured on test doubles that are created as test stubs are no longer verified since PHPUnit 10. Test doubles that are created as test stubs will no longer have the expects() method in PHPUnit 12. Update your test code to use createMock() instead of createStub(), for example.'; try { $test = TestMethodBuilder::fromCallStack(); if (!$this->__phpunit_state()->wasDeprecationAlreadyEmittedFor($test->id())) { EventFacade::emitter()->testTriggeredPhpunitDeprecation( $test, $message, ); $this->__phpunit_state()->deprecationWasEmittedFor($test->id()); } // @codeCoverageIgnoreStart } catch (NoTestCaseObjectOnCallStackException) { EventFacade::emitter()->testRunnerTriggeredPhpunitDeprecation($message); // @codeCoverageIgnoreEnd } } return $this->__phpunit_getInvocationHandler()->expects($matcher); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
DoubledCloneMethod.php
766 B
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ErrorCloneMethod.php
666 B
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneratedAsMockObject.php
627 B
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneratedAsTestStub.php
627 B
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Method.php
1.01 KB
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MockObjectApi.php
2.78 KB
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MutableStubApi.php
1.07 KB
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ProxiedCloneMethod.php
794 B
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StubApi.php
1.05 KB
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TestDoubleState.php
2.77 KB
lrw-r--r--
2025-10-28 20:23:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).