repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/readonly-properties-ad-hoc/supported.php | test/fixture/mock-generator/readonly-properties-ad-hoc/supported.php | <?php
$message = 'Requires PHP >= 8.1';
return version_compare(PHP_VERSION, '8.1.x', '>=');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/readonly-properties-ad-hoc/builder.php | test/fixture/mock-generator/readonly-properties-ad-hoc/builder.php | <?php
$builder = $factory->create(
[
'readonly string propertyA' => null,
'var readonly ?int propertyB' => null,
]
);
return $builder->named('MockGeneratorReadonlyPropertiesAdHoc');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-constructor-conflict/expected.php | test/fixture/mock-generator/trait-constructor-conflict/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTraitConstructorConflict
implements Mock
{
use \Eloquent\Phony\Test\TestTraitD,
\Eloquent\Phony\Test\TestTraitE
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-constructor-conflict/builder.php | test/fixture/mock-generator/trait-constructor-conflict/builder.php | <?php
use Eloquent\Phony\Test\TestTraitD;
use Eloquent\Phony\Test\TestTraitE;
$builder = $factory->create(
[
TestTraitD::class,
TestTraitE::class,
]
);
return $builder->named('MockGeneratorTraitConstructorConflict');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/parameter-constant/expected.php | test/fixture/mock-generator/parameter-constant/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorParameterConstant
implements Mock
{
public function methodA(
$first = 1
) {
$¤argumentCount = \func_num_... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/parameter-constant/builder.php | test/fixture/mock-generator/parameter-constant/builder.php | <?php
$builder = $factory->create(
[
'methodA' => function (
$phonySelf,
$first = ReflectionMethod::IS_PUBLIC
) {},
]
);
return $builder->named('MockGeneratorParameterConstant');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-void/expected.php | test/fixture/mock-generator/return-type-void/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorVoidReturnType
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithVoidReturnType
{
public static function sta... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-void/builder.php | test/fixture/mock-generator/return-type-void/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithVoidReturnType;
$builder = $factory->create(
[
TestInterfaceWithVoidReturnType::class,
[
'customMethod' => function () : void {},
],
]
);
return $builder->named('MockGeneratorVoidReturnType');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/relaxed-keywords/expected.php | test/fixture/mock-generator/relaxed-keywords/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorRelaxedKeywords
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithKeywordMethods
{
public function return()
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/relaxed-keywords/builder.php | test/fixture/mock-generator/relaxed-keywords/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithKeywordMethods;
$builder = $factory->create(
[
TestInterfaceWithKeywordMethods::class,
[
'throw' => function () {},
],
]
);
return $builder->named('MockGeneratorRelaxedKeywords');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/nullable-types/expected.php | test/fixture/mock-generator/nullable-types/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorNullableTypes
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithNullableTypes
{
public static function custo... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/nullable-types/builder.php | test/fixture/mock-generator/nullable-types/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithNullableTypes;
$builder = $factory->create(
[
TestInterfaceWithNullableTypes::class,
[
'static customStaticMethod' =>
function (?string $string, ?stdClass $object) : ?TestClassA {},
'customMethod' =>
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/destructor/expected.php | test/fixture/mock-generator/destructor/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorDestructor
extends \Eloquent\Phony\Test\TestClassJ
implements Mock
{
public function __destruct()
{
if (isset($t... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/destructor/builder.php | test/fixture/mock-generator/destructor/builder.php | <?php
use Eloquent\Phony\Test\TestClassJ;
$builder = $factory->create(TestClassJ::class);
return $builder->named('MockGeneratorDestructor');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/enum-types/expected.php | test/fixture/mock-generator/enum-types/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorEnumTypes
implements Mock,
\Eloquent\Phony\Test\Php81\TestInterfaceUsingEnums
{
public static function staticMeth... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/enum-types/builder.php | test/fixture/mock-generator/enum-types/builder.php | <?php
use Eloquent\Phony\Test\Php81\TestInterfaceUsingEnums;
$builder = $factory->create(TestInterfaceUsingEnums::class);
return $builder->named('MockGeneratorEnumTypes');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typical/expected.php | test/fixture/mock-generator/typical/expected.php | <?php
namespace Phony\Test;
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTypical
extends \Eloquent\Phony\Test\TestClassB
implements Mock,
\Iterator,
\Counta... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typical/supported.php | test/fixture/mock-generator/typical/supported.php | <?php
$message = 'Requires PHP >= 8.1';
return version_compare(PHP_VERSION, '8.1.x', '>=');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typical/builder.php | test/fixture/mock-generator/typical/builder.php | <?php
use Eloquent\Phony\Test\TestClassB;
$builder = $factory->create(
[
TestClassB::class,
Iterator::class,
Countable::class,
ArrayAccess::class,
[
'const CONSTANT_A' => 'constantValueA',
'const CONSTANT_B' => 444,
'const CONSTANT_C' => ... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typical-traits/expected.php | test/fixture/mock-generator/typical-traits/expected.php | <?php
namespace Phony\Test;
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTypicalTraits
extends \Eloquent\Phony\Test\TestClassB
implements Mock,
\Iterator,
\... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typical-traits/supported.php | test/fixture/mock-generator/typical-traits/supported.php | <?php
$message = 'Requires PHP >= 8.1';
return version_compare(PHP_VERSION, '8.1.x', '>=');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typical-traits/builder.php | test/fixture/mock-generator/typical-traits/builder.php | <?php
use Eloquent\Phony\Test\TestClassB;
use Eloquent\Phony\Test\TestTraitA;
use Eloquent\Phony\Test\TestTraitB;
$builder = $factory->create(
[
TestClassB::class,
Iterator::class,
Countable::class,
ArrayAccess::class,
TestTraitA::class,
TestTraitB::class,
[... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/object-type-hint/expected.php | test/fixture/mock-generator/object-type-hint/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorObjectTypeHint
implements Mock
{
public function methodA(
object $first,
?object $second = null
) {
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/object-type-hint/builder.php | test/fixture/mock-generator/object-type-hint/builder.php | <?php
$builder = $factory->create(
[
'methodA' => function (
$phonySelf,
object $first,
object $second = null
) {},
]
);
return $builder->named('MockGeneratorObjectTypeHint');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-magic-call/expected.php | test/fixture/mock-generator/return-type-magic-call/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorReturnTypeMagicCall
implements Mock
{
public static function __callStatic(
$name,
array $arguments
) : \... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-magic-call/builder.php | test/fixture/mock-generator/return-type-magic-call/builder.php | <?php
$builder = $factory->create(
[
'static __callStatic' =>
function ($name, array $arguments) : \stdClass {},
'__call' => function ($name, array $arguments) : \stdClass {},
]
);
return $builder->named('MockGeneratorReturnTypeMagicCall');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-self/expected.php | test/fixture/mock-generator/return-type-self/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorSelfReturnType
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithSelfReturnType
{
public static function sta... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-self/builder.php | test/fixture/mock-generator/return-type-self/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithSelfReturnType;
$builder = $factory->create(TestInterfaceWithSelfReturnType::class);
return $builder->named('MockGeneratorSelfReturnType');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/variadics/expected.php | test/fixture/mock-generator/variadics/expected.php | <?php
namespace Phony\Test;
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorVariadics
implements Mock
{
public function methodA(
$a,
$b,
...$c
) {
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/variadics/builder.php | test/fixture/mock-generator/variadics/builder.php | <?php
$builder = $factory->create(
[
'methodA' => function ($a, $b, ...$c) {},
'methodB' => function ($a, $b, stdClass ...$c) {},
'methodC' => function ($a, $b, &...$c) {},
'methodD' => function ($a, $b, ?stdClass...$c) {},
]
);
return $builder->named('Phony\Test\MockGeneratorV... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-never/expected.php | test/fixture/mock-generator/return-type-never/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorNeverReturnType
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithNeverReturnType
{
public static function s... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-never/supported.php | test/fixture/mock-generator/return-type-never/supported.php | <?php
$message = 'Requires PHP >= 8.1';
return version_compare(PHP_VERSION, '8.1.x', '>=');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-never/builder.php | test/fixture/mock-generator/return-type-never/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithNeverReturnType;
$builder = $factory->create(
[
TestInterfaceWithNeverReturnType::class,
[
'customMethod' => function () : never {},
],
]
);
return $builder->named('MockGeneratorNeverReturnType');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-by-reference/expected.php | test/fixture/mock-generator/return-by-reference/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorReturnByReference
extends \Eloquent\Phony\Test\TestClassG
implements Mock
{
public static function &testClassGStaticMethodA(... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-by-reference/builder.php | test/fixture/mock-generator/return-by-reference/builder.php | <?php
use Eloquent\Phony\Test\TestClassG;
$builder = $factory->create(TestClassG::class);
return $builder->named('MockGeneratorReturnByReference');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/undefined-type-hint/expected.php | test/fixture/mock-generator/undefined-type-hint/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorUndefinedTypeHint
implements Mock
{
public function methodA(
\Non\Existent $first,
?\Non\Existent $second = ... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/undefined-type-hint/builder.php | test/fixture/mock-generator/undefined-type-hint/builder.php | <?php
$builder = $factory->create(
[
'methodA' => function (
$phonySelf,
Non\Existent $first,
Non\Existent $second = null
) {},
]
);
return $builder->named('MockGeneratorUndefinedTypeHint');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/interface-magic-call/expected.php | test/fixture/mock-generator/interface-magic-call/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorInterfaceMagicCall
implements Mock,
\Eloquent\Phony\Test\TestInterfaceD
{
public static function __callStatic(
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/interface-magic-call/builder.php | test/fixture/mock-generator/interface-magic-call/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceD;
$builder = $factory->create(TestInterfaceD::class);
return $builder->named('MockGeneratorInterfaceMagicCall');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/nullable-types-builtin/expected.php | test/fixture/mock-generator/nullable-types-builtin/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorNullableBultinTypes
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithNullableBuiltinTypes
{
public static f... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/nullable-types-builtin/builder.php | test/fixture/mock-generator/nullable-types-builtin/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithNullableBuiltinTypes;
$builder = $factory->create(
[
TestInterfaceWithNullableBuiltinTypes::class,
[
'static customStaticMethod' =>
function (?string $string, ?stdClass $object) : ?TestClassA {},
'customMethod' ... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/iterable-type-hint/expected.php | test/fixture/mock-generator/iterable-type-hint/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorIterableTypeHint
implements Mock
{
public function methodA(
\Traversable|array $first,
\Traversable|array|nu... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/iterable-type-hint/supported.php | test/fixture/mock-generator/iterable-type-hint/supported.php | <?php
$message = 'Requires PHP >= 8.2';
return version_compare(PHP_VERSION, '8.2.x', '>=');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/iterable-type-hint/builder.php | test/fixture/mock-generator/iterable-type-hint/builder.php | <?php
$builder = $factory->create(
[
'methodA' => function (
$phonySelf,
iterable $first,
iterable $second = null
) {},
]
);
return $builder->named('MockGeneratorIterableTypeHint');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/callable-type-hint/expected.php | test/fixture/mock-generator/callable-type-hint/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorCallableTypeHint
implements Mock
{
public function methodA(
callable $first,
?callable $second = null
) ... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/callable-type-hint/builder.php | test/fixture/mock-generator/callable-type-hint/builder.php | <?php
$builder = $factory->create(
[
'methodA' => function (
$phonySelf,
callable $first,
callable $second = null
) {},
]
);
return $builder->named('MockGeneratorCallableTypeHint');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-conflict/expected.php | test/fixture/mock-generator/trait-conflict/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTraitConflict
implements Mock
{
use \Eloquent\Phony\Test\TestTraitA,
\Eloquent\Phony\Test\TestTraitB,
\Eloqu... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-conflict/builder.php | test/fixture/mock-generator/trait-conflict/builder.php | <?php
use Eloquent\Phony\Test\TestTraitA;
use Eloquent\Phony\Test\TestTraitB;
use Eloquent\Phony\Test\TestTraitC;
$builder = $factory->create(
[
TestTraitA::class,
TestTraitB::class,
TestTraitC::class,
]
);
return $builder->named('MockGeneratorTraitConflict');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/custom-method-invocable-object/expected.php | test/fixture/mock-generator/custom-method-invocable-object/expected.php | <?php
namespace Phony\Test;
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorCustomMethodInvocableObject
implements Mock
{
public function methodA(
...$arguments
) {
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/custom-method-invocable-object/builder.php | test/fixture/mock-generator/custom-method-invocable-object/builder.php | <?php
$builder = $factory->create(
[
'methodA' => new Eloquent\Phony\Test\TestInvocable(),
]
);
return $builder->named('Phony\Test\MockGeneratorCustomMethodInvocableObject');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/non-optional-nullable-object/expected.php | test/fixture/mock-generator/non-optional-nullable-object/expected.php | <?php
namespace Phony\Test;
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorNonOptionalNullableObject
implements Mock
{
public function methodA(
?\stdClass $first,
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/non-optional-nullable-object/builder.php | test/fixture/mock-generator/non-optional-nullable-object/builder.php | <?php
$builder = $factory->create(
[
'methodA' => function (stdClass $first = null, $second) {},
]
);
return $builder->named('Phony\Test\MockGeneratorNonOptionalNullableObject');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-self-type/expected.php | test/fixture/mock-generator/trait-self-type/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTraitSelfType
implements Mock
{
use \Eloquent\Phony\Test\TestTraitWithSelfType
{
}
public static function stati... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-self-type/builder.php | test/fixture/mock-generator/trait-self-type/builder.php | <?php
use Eloquent\Phony\Test\TestTraitWithSelfType;
$builder = $factory->create(TestTraitWithSelfType::class);
return $builder->named('MockGeneratorTraitSelfType');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/scalar-type-hint/expected.php | test/fixture/mock-generator/scalar-type-hint/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorScalarTypeHint
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithScalarTypeHint
{
public function method(
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/scalar-type-hint/builder.php | test/fixture/mock-generator/scalar-type-hint/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithScalarTypeHint;
$builder = $factory->create(
[
TestInterfaceWithScalarTypeHint::class,
[
'customMethod' => function (int $int) {}
],
]
);
return $builder->named('MockGeneratorScalarTypeHint');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/array-constant/expected.php | test/fixture/mock-generator/array-constant/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorArrayConstant
implements Mock
{
const CONSTANT_A = array (
);
const CONSTANT_B = array (
0 => 'a',
1 => 'b',
);
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/array-constant/builder.php | test/fixture/mock-generator/array-constant/builder.php | <?php
$builder = $factory->create(
[
'const CONSTANT_A' => [],
'const CONSTANT_B' => ['a', 'b'],
'const CONSTANT_C' => ['a' => 'b', 'c' => 'd'],
]
);
return $builder->named('MockGeneratorArrayConstant');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typed-properties/expected.php | test/fixture/mock-generator/typed-properties/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTypedProperties
extends \Eloquent\Phony\Test\TestClassWithTypedProperties
implements Mock
{
private static function _callPar... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typed-properties/builder.php | test/fixture/mock-generator/typed-properties/builder.php | <?php
use Eloquent\Phony\Test\TestClassWithTypedProperties;
$builder = $factory->create(
[
TestClassWithTypedProperties::class,
]
);
return $builder->named('MockGeneratorTypedProperties');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-magic-call/expected.php | test/fixture/mock-generator/trait-magic-call/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTraitMagicCall
implements Mock
{
use \Eloquent\Phony\Test\TestTraitJ
{
\Eloquent\Phony\Test\TestTraitJ::__callSt... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-magic-call/builder.php | test/fixture/mock-generator/trait-magic-call/builder.php | <?php
use Eloquent\Phony\Test\TestTraitJ;
$builder = $factory->create(TestTraitJ::class);
return $builder->named('MockGeneratorTraitMagicCall');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-static/expected.php | test/fixture/mock-generator/return-type-static/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorStaticReturnType
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithStaticReturnType
{
public static function... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-static/builder.php | test/fixture/mock-generator/return-type-static/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithStaticReturnType;
$builder = $factory->create(TestInterfaceWithStaticReturnType::class);
return $builder->named('MockGeneratorStaticReturnType');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typed-properties-ad-hoc/expected.php | test/fixture/mock-generator/typed-properties-ad-hoc/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTypedPropertiesAdHoc
implements Mock
{
public $propertyA = 'a';
public string $propertyB = 'b';
public ?int $propert... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/typed-properties-ad-hoc/builder.php | test/fixture/mock-generator/typed-properties-ad-hoc/builder.php | <?php
$builder = $factory->create(
[
'propertyA' => 'a',
'string propertyB' => 'b',
'var ?int propertyC' => null,
]
);
return $builder->named('MockGeneratorTypedPropertiesAdHoc');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/private-constructor/expected.php | test/fixture/mock-generator/private-constructor/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorPrivateConstructor
extends \Eloquent\Phony\Test\TestClassD
implements Mock
{
public function __construct()
{
}
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/private-constructor/builder.php | test/fixture/mock-generator/private-constructor/builder.php | <?php
use Eloquent\Phony\Test\TestClassD;
$builder = $factory->create(TestClassD::class);
return $builder->named('MockGeneratorPrivateConstructor');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/simple/expected.php | test/fixture/mock-generator/simple/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorSimple
extends \stdClass
implements Mock
{
private static function _callParentStatic(
$name,
Arguments $argu... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/simple/builder.php | test/fixture/mock-generator/simple/builder.php | <?php
$builder = $factory->create('stdClass');
return $builder->named('MockGeneratorSimple');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-void-with-parent/expected.php | test/fixture/mock-generator/return-type-void-with-parent/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorVoidReturnTypeWithParent
extends \Eloquent\Phony\Test\TestClassWithVoidReturnType
implements Mock
{
public static function s... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type-void-with-parent/builder.php | test/fixture/mock-generator/return-type-void-with-parent/builder.php | <?php
use Eloquent\Phony\Test\TestClassWithVoidReturnType;
$builder = $factory->create(
[
TestClassWithVoidReturnType::class,
]
);
return $builder->named('MockGeneratorVoidReturnTypeWithParent');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type/expected.php | test/fixture/mock-generator/return-type/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorReturnType
implements Mock,
\Eloquent\Phony\Test\TestInterfaceWithReturnType
{
public static function __callStati... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/return-type/builder.php | test/fixture/mock-generator/return-type/builder.php | <?php
use Eloquent\Phony\Test\TestInterfaceWithReturnType;
$builder = $factory->create(
[
TestInterfaceWithReturnType::class,
[
'customMethodWithClassType' => function () : \stdClass {},
'customMethodWithScalarType' => function () : int {},
],
]
);
return $buil... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/phar/expected.php | test/fixture/mock-generator/phar/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorPhar
extends \Phar
implements Mock
{
public function __construct()
{
}
public function __destruct()
{
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | true |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/phar/supported.php | test/fixture/mock-generator/phar/supported.php | <?php
if (!class_exists('Phar')) {
$message = 'Requires the Phar class.';
return false;
}
if (version_compare(PHP_VERSION, '8.1.x', '<')) {
$message = 'Requires PHP >= 8.1';
return false;
}
$setStub = new ReflectionMethod('Phar', 'setStub');
list(, $length) = $setStub->getParameters();
$message = "... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/phar/builder.php | test/fixture/mock-generator/phar/builder.php | <?php
$builder = $factory->create('Phar');
return $builder->named('MockGeneratorPhar');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-constructor/expected.php | test/fixture/mock-generator/trait-constructor/expected.php | <?php
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorTraitConstructor
implements Mock
{
use \Eloquent\Phony\Test\TestTraitD
{
\Eloquent\Phony\Test\TestTraitD::__cons... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/trait-constructor/builder.php | test/fixture/mock-generator/trait-constructor/builder.php | <?php
use Eloquent\Phony\Test\TestTraitD;
$builder = $factory->create(TestTraitD::class);
return $builder->named('MockGeneratorTraitConstructor');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/final-method/expected.php | test/fixture/mock-generator/final-method/expected.php | <?php
namespace Phony\Test;
use Eloquent\Phony\Call\Arguments;
use Eloquent\Phony\Mock\Handle\InstanceHandle;
use Eloquent\Phony\Mock\Handle\StaticHandleRegistry;
use Eloquent\Phony\Mock\Mock;
class MockGeneratorFinalMethod
extends \Eloquent\Phony\Test\TestClassF
implements Mock
{
private static function _callPa... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/fixture/mock-generator/final-method/builder.php | test/fixture/mock-generator/final-method/builder.php | <?php
use Eloquent\Phony\Test\TestClassF;
$builder = $factory->create(TestClassF::class);
return $builder->named('Phony\Test\MockGeneratorFinalMethod');
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/ClassWithProperty.php | test/src/ClassWithProperty.php | <?php
class ClassWithProperty
{
public mixed $c;
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/ClassA.php | test/src/ClassA.php | <?php
class ClassA
{
public static function staticMethodA()
{
}
public static function __callStatic($name, array $arguments)
{
}
public function methodA()
{
}
public function __call($name, array $arguments)
{
}
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/TestClass.php | test/src/TestClass.php | <?php
class TestClass
{
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/initialize.php | test/src/initialize.php | <?php
declare(strict_types=1);
use Eloquent\Phony\Test\Facade\FacadeContainer;
use Eloquent\Phony\Test\Facade\Globals;
Globals::$container = new FacadeContainer();
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestClassA.php | test/src/Test/TestClassA.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
class TestClassA implements TestInterfaceA
{
public static function testClassAStaticMethodA()
{
return implode(func_get_args());
}
public static function testClassAStaticMethodB($first, $second)
{
return implode(func_g... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestInterfaceD.php | test/src/Test/TestInterfaceD.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
interface TestInterfaceD
{
public static function __callStatic($name, array $arguments);
public function __call($name, array $arguments);
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestClassWithFinalReturnType.php | test/src/Test/TestClassWithFinalReturnType.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
class TestClassWithFinalReturnType
{
public function finalReturnType(): TestFinalClassA
{
return new TestFinalClassA();
}
public function __call(string $name, array $arguments): TestFinalClassA
{
return new TestFinalCl... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestMatcherB.php | test/src/Test/TestMatcherB.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
class TestMatcherB
{
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestInterfaceWithFinalReturnType.php | test/src/Test/TestInterfaceWithFinalReturnType.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
interface TestInterfaceWithFinalReturnType
{
public function finalReturnType(): TestFinalClassA;
public function __call(string $name, array $arguments): TestFinalClassA;
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestTraitC.php | test/src/Test/TestTraitC.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
trait TestTraitC
{
public static function testClassAStaticMethodA()
{
return implode(func_get_args());
}
public function testClassAMethodB()
{
return implode(func_get_args());
}
abstract public function testTr... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestMatcherDriverB.php | test/src/Test/TestMatcherDriverB.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
use Eloquent\Phony\Exporter\Exporter;
use Eloquent\Phony\Matcher\EqualToMatcher;
use Eloquent\Phony\Matcher\Matcher;
use Eloquent\Phony\Matcher\MatcherDriver;
class TestMatcherDriverB implements MatcherDriver
{
public function __construct(Exporter $e... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestClassWithConstructorProperties.php | test/src/Test/TestClassWithConstructorProperties.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
class TestClassWithConstructorProperties
{
public function __construct(
public int $publicConstructor,
protected int $protectedConstructor,
private int $privateConstructor
) { }
public function __get(string $name)
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestTraitH.php | test/src/Test/TestTraitH.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
trait TestTraitH
{
public function methodA()
{
return 'a';
}
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestMatcherDriverA.php | test/src/Test/TestMatcherDriverA.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
use Eloquent\Phony\Exporter\Exporter;
use Eloquent\Phony\Matcher\EqualToMatcher;
use Eloquent\Phony\Matcher\Matcher;
use Eloquent\Phony\Matcher\MatcherDriver;
class TestMatcherDriverA implements MatcherDriver
{
public function __construct(Exporter $e... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestTraitE.php | test/src/Test/TestTraitE.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
trait TestTraitE
{
public array $constructorArguments;
public function __construct($first, $second, $third = null)
{
$this->constructorArguments = func_get_args();
}
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestWrappedInvocable.php | test/src/Test/TestWrappedInvocable.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
use Eloquent\Phony\Invocation\WrappedInvocable;
use Eloquent\Phony\Invocation\WrappedInvocableTrait;
class TestWrappedInvocable implements WrappedInvocable
{
use WrappedInvocableTrait;
public function __construct($callback = null)
{
... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestInterfaceWithStaticReturnType.php | test/src/Test/TestInterfaceWithStaticReturnType.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
interface TestInterfaceWithStaticReturnType
{
public static function staticMethod(): static;
public static function __callStatic($name, array $arguments): static;
public function method(): static;
public function __call($name, array $ar... | php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestClassE.php | test/src/Test/TestClassE.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
class TestClassE
{
private static $privateStaticProperty = 'private';
private $privateProperty = 'private';
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
eloquent/phony | https://github.com/eloquent/phony/blob/3d093d78e83fa5066559854505f01b6ea19af12e/test/src/Test/TestClassD.php | test/src/Test/TestClassD.php | <?php
declare(strict_types=1);
namespace Eloquent\Phony\Test;
class TestClassD
{
private function __construct()
{
$this->constructorArguments = func_get_args();
}
public $constructorArguments;
}
| php | MIT | 3d093d78e83fa5066559854505f01b6ea19af12e | 2026-01-05T02:35:49.024953Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.