REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 2.77 KB
Close
/home/getspomw/royalsquad.us/vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Api/TestDoubleState.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; /** * @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 TestDoubleState { /** * @var array<non-empty-string, true> */ private static array $deprecationEmittedForTest = []; /** * @var list<ConfigurableMethod> */ private readonly array $configurableMethods; private readonly bool $generateReturnValues; private ?InvocationHandler $invocationHandler = null; private ?object $proxyTarget = null; /** * @param list<ConfigurableMethod> $configurableMethods */ public function __construct(array $configurableMethods, bool $generateReturnValues) { $this->configurableMethods = $configurableMethods; $this->generateReturnValues = $generateReturnValues; } public function invocationHandler(): InvocationHandler { if ($this->invocationHandler !== null) { return $this->invocationHandler; } $this->invocationHandler = new InvocationHandler( $this->configurableMethods, $this->generateReturnValues, ); return $this->invocationHandler; } public function cloneInvocationHandler(): void { if ($this->invocationHandler === null) { return; } $this->invocationHandler = clone $this->invocationHandler; } public function unsetInvocationHandler(): void { $this->invocationHandler = null; } public function setProxyTarget(object $proxyTarget): void { $this->proxyTarget = $proxyTarget; } public function proxyTarget(): object { assert($this->proxyTarget !== null); return $this->proxyTarget; } /** * @param non-empty-string $testId */ public function deprecationWasEmittedFor(string $testId): void { self::$deprecationEmittedForTest[$testId] = true; } /** * @param non-empty-string $testId */ public function wasDeprecationAlreadyEmittedFor(string $testId): bool { return isset(self::$deprecationEmittedForTest[$testId]); } /** * @return list<ConfigurableMethod> */ public function configurableMethods(): array { return $this->configurableMethods; } public function generateReturnValues(): bool { return $this->generateReturnValues; } }
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-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ErrorCloneMethod.php
666 B
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneratedAsMockObject.php
627 B
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneratedAsTestStub.php
627 B
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Method.php
1.01 KB
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MockObjectApi.php
2.77 KB
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MutableStubApi.php
1.07 KB
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ProxiedCloneMethod.php
794 B
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StubApi.php
1.05 KB
lrw-rw-rw-
2025-09-17 06:53:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TestDoubleState.php
2.77 KB
lrw-rw-rw-
2025-09-17 06:53:08
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).