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 |
|---|---|---|---|---|---|---|---|---|
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/SetterMethodTest.php | tests/di/SetterMethodTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Di\Exception\Unbound;
use ReflectionMethod;
use ReflectionParameter;
use stdClass;
use function spl_object_hash;
class SetterMethodTest extends TestCase
{
/** @var SetterMethods */
protected $setterMethods;
protec... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/SpyCompilerTest.php | tests/di/SpyCompilerTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Aop\Bind as AopBind;
class SpyCompilerTest extends TestCase
{
public function testNoBindng(): void
{
$spy = new SpyCompiler();
$class = $spy->compile(FakeHandle::class, new AopBind());
$this->ass... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/UnboundTest.php | tests/di/UnboundTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use LogicException;
use PHPUnit\Framework\TestCase;
use Ray\Di\Exception\Unbound;
class UnboundTest extends TestCase
{
public function testGetBound(): void
{
$previous = new Unbound('dep1-');
$e = new Unbound('dep2-', 0, $previous);
$s... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/ModuleTest.php | tests/di/ModuleTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Di\Exception\NotFound;
use function str_replace;
class ModuleTest extends TestCase
{
public function testNew(): void
{
$module = new FakeInstanceBindModule();
$this->assertInstanceOf(AbstractModule::cla... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/InjectionPointTest.php | tests/di/InjectionPointTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use ReflectionParameter;
class InjectionPointTest extends TestCase
{
/** @var InjectionPointInterface */
private $ip;
/** @var ReflectionParameter */
private $parameter;
protected function setUp(): void
{
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/NameTest.php | tests/di/NameTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use ReflectionParameter;
class NameTest extends TestCase
{
public function testUnName(): void
{
$name = new Name(Name::ANY);
$parameter = new ReflectionParameter([FakeCar::class, '__construct'], 'engine');
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/VisitorTest.php | tests/di/VisitorTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Aop\Bind as AopBind;
use ReflectionParameter;
use function assert;
use function implode;
use function method_exists;
use function sprintf;
class VisitorTest extends TestCase
{
/** @var NullVisitor */
private $visitor;
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/NoHintTest.php | tests/di/NoHintTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Di\Exception\NoHint;
use Ray\Di\Exception\Unbound;
class NoHintTest extends TestCase
{
public function testNoHintIsUnbound(): void
{
$e = new NoHint();
$this->assertInstanceOf(Unbound::class, $e);
}
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/BindTest.php | tests/di/BindTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Di\Exception\InvalidProvider;
use Ray\Di\Exception\InvalidType;
use Ray\Di\Exception\NotFound;
use function assert;
use function property_exists;
use function spl_object_hash;
class BindTest extends TestCase
{
/** @var Bin... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/AnnotatedClassTest.php | tests/di/AnnotatedClassTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use LogicException;
use PHPUnit\Framework\TestCase;
use Ray\Aop\ReflectionClass;
class AnnotatedClassTest extends TestCase
{
/** @var AnnotatedClass */
protected $annotatedClass;
protected function setUp(): void
{
parent::setUp();
$th... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/BcParameterQualifierTest.php | tests/di/BcParameterQualifierTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Di\Annotation\FakeInjectOne;
use Ray\Di\Annotation\FakeQualifierOnly;
use ReflectionMethod;
class BcParameterQualifierTest extends TestCase
{
public function testGetNamesFromMethodLevelAttribute(): void
{
$metho... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/ContainerTest.php | tests/di/ContainerTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use BadMethodCallException;
use PHPUnit\Framework\TestCase;
use Ray\Aop\Compiler;
use Ray\Aop\Matcher;
use Ray\Aop\Pointcut;
use Ray\Di\Exception\Unbound;
use Throwable;
use function assert;
use function get_class;
use function sys_get_temp_dir;
class ContainerTest ... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/BcStringParserTest.php | tests/di/BcStringParserTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
class BcStringParserTest extends TestCase
{
public function testParseStringFormat(): void
{
$result = BcStringParser::parse('engine=engine_name,var=var_name');
$expected = ['engine' => 'engine_name', 'var' => 'v... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/GrapherTest.php | tests/di/GrapherTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use LogicException;
use PHPUnit\Framework\TestCase;
use function assert;
use function file_get_contents;
use function is_string;
use function passthru;
use function unserialize;
class GrapherTest extends TestCase
{
public function testNew(): void
{
$... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/ArgumentTest.php | tests/di/ArgumentTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use ReflectionMethod;
use ReflectionParameter;
use function assert;
use function serialize;
use function unserialize;
class ArgumentTest extends TestCase
{
/** @var Argument */
protected $argument;
protected function setU... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/ContextualProviderTest.php | tests/di/ContextualProviderTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
class ContextualProviderTest extends TestCase
{
public function testContextualProviderInjection(): void
{
$robot = (new Injector(new FakeContextualModule('main')))->getInstance(FakeRobotInterface::class);
/** @v... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/NullModuleTest.php | tests/di/NullModuleTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
class NullModuleTest extends TestCase
{
public function testEmpty(): void
{
$module = new NullModule();
$container = $module->getContainer();
$this->assertSame([], $container->getContainer());
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/ProviderProviderTest.php | tests/di/ProviderProviderTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Di\Di\Set;
class ProviderProviderTest extends TestCase
{
public function testGet(): void
{
$injector = new Injector(
new class extends AbstractModule {
protected function configure()
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/InjectionPointsTest.php | tests/di/InjectionPointsTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use function get_class;
class InjectionPointsTest extends TestCase
{
/** @var InjectionPoints */
protected $injectionPoints;
protected function setUp(): void
{
parent::setUp();
$this->injectionPoints =... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/SetterMethodsTest.php | tests/di/SetterMethodsTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use ReflectionMethod;
class SetterMethodsTest extends TestCase
{
/** @var SetterMethod */
protected $setterMethod;
protected function setUp(): void
{
$method = new ReflectionMethod(FakeCar::class, 'setTires');
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/DependencyTest.php | tests/di/DependencyTest.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PHPUnit\Framework\TestCase;
use Ray\Aop\Compiler;
use Ray\Aop\Matcher;
use Ray\Aop\Pointcut;
use Ray\Aop\WeavedInterface;
use ReflectionClass;
use ReflectionMethod;
use function assert;
use function is_object;
use function property_exists;
use function spl_object... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/MultiBinding/MultiBinderTest.php | tests/di/MultiBinding/MultiBinderTest.php | <?php
declare(strict_types=1);
namespace Ray\Di\MultiBinding;
use PHPUnit\Framework\TestCase;
use Ray\Di\FakeEngine;
use Ray\Di\FakeEngine2;
use Ray\Di\FakeEngineInterface;
use Ray\Di\MultiBinder;
use Ray\Di\NullModule;
/**
* @requires PHP 8.0
*/
class MultiBinderTest extends TestCase
{
public function testAd... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/MultiBinding/MultiBindingModuleTest.php | tests/di/MultiBinding/MultiBindingModuleTest.php | <?php
declare(strict_types=1);
namespace Ray\Di\MultiBinding;
use ArrayAccess;
use LogicException;
use PHPUnit\Framework\TestCase;
use Ray\Di\AbstractModule;
use Ray\Di\Exception\SetNotFound;
use Ray\Di\FakeEngine;
use Ray\Di\FakeEngine2;
use Ray\Di\FakeEngine3;
use Ray\Di\FakeEngineInterface;
use Ray\Di\FakeMultiBi... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/script/bench.php | tests/di/script/bench.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Compiler\DiCompiler;
use Ray\Compiler\ScriptInjector;
use function assert;
use function microtime;
use function printf;
use function range;
use function serialize;
use function unserialize;
require __DIR__ . '/bootstrap.php';
$n = 20;
$injector = new Inject... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/script/grapher.php | tests/di/script/grapher.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use function dirname;
use function file_put_contents;
use function serialize;
$appRoot = dirname(__DIR__, 3);
require $appRoot . '/vendor/autoload.php';
$grapher = new Grapher(new FakeAopGrapherModule(), $appRoot . '/tests/tmp');
file_put_contents(__FILE__ . '.txt',... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/script/aop.php | tests/di/script/aop.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use function dirname;
use function file_put_contents;
use function serialize;
$appRoot = dirname(__DIR__, 3);
require $appRoot . '/vendor/autoload.php';
$injector = new Injector(new FakeAopModule(), $appRoot . '/tests/tmp');
file_put_contents(__FILE__ . '.cache.txt'... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeGearStickInject.php | tests/di/Fake/FakeGearStickInject.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Attribute;
use Ray\Di\Di\InjectInterface;
use Ray\Di\Di\Qualifier;
#[Attribute(Attribute::TARGET_METHOD)]
#[Qualifier]
class FakeGearStickInject implements InjectInterface
{
public $value;
public function isOptional()
{
return true;
}
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoInterceptor2.php | tests/di/Fake/FakeAnnoInterceptor2.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class FakeAnnoInterceptor2 implements MethodInterceptor
{
public function invoke(MethodInvocation $invocation)
{
FakeAnnoClass::$order[] = self::class;
return $invocation->proceed()... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeConstantConsumer.php | tests/di/Fake/FakeConstantConsumer.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Inject;
class FakeConstantConsumer
{
public $constantByConstruct;
public $constantBySetter;
public $defaultByConstruct;
public $defaultBySetter;
public $setterConstantWithoutVarName;
public function __construct(#[FakeConstant('c... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeInstanceBindModule2.php | tests/di/Fake/FakeInstanceBindModule2.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeInstanceBindModule2 extends AbstractModule
{
protected function configure()
{
$this->bind('')->annotatedWith('two')->toInstance(2);
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoInterceptor1.php | tests/di/Fake/FakeAnnoInterceptor1.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class FakeAnnoInterceptor1 implements MethodInterceptor
{
public function invoke(MethodInvocation $invocation)
{
FakeAnnoClass::$order[] = self::class;
return $invocation->proceed()... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeDoubleInterceptor.php | tests/di/Fake/FakeDoubleInterceptor.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class FakeDoubleInterceptor implements MethodInterceptor, FakeDoubleInterceptorInterface
{
public function invoke(MethodInvocation $invocation)
{
$result = $invocation->proceed();
r... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeCarEngine.php | tests/di/Fake/FakeCarEngine.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeCarEngine extends FakeEngine
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeCarModule.php | tests/di/Fake/FakeCarModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\NullInterceptor;
class FakeCarModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeCarInterface::class)->to(FakeCar::class); // dependent
$this->bind(FakeEngineInterface::class)->to(FakeEngine::class); /... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeSetNotFoundWithProvider.php | tests/di/Fake/FakeSetNotFoundWithProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Set;
use Ray\Di\MultiBinding\Map;
final class FakeSetNotFoundWithProvider
{
/**
* This property should Set annotated for setProviderButNotSetFound method.
* SetNotFound exception will be thrown.
*/
public $engineProvider;
pu... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeContextualRobot.php | tests/di/Fake/FakeContextualRobot.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeContextualRobot implements FakeRobotInterface
{
public $context;
public function __construct($context)
{
$this->context = $context;
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeInstanceBindModule.php | tests/di/Fake/FakeInstanceBindModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Annotation\FakeInjectOne;
class FakeInstanceBindModule extends AbstractModule
{
protected function configure()
{
$this->bind('')->annotatedWith('one')->toInstance(1);
$this->bind('')->annotatedWith(FakeInjectOne::class)->toInstance(... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopModule.php | tests/di/Fake/FakeAopModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeAopModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeAopInterface::class)->to(FakeAop::class);
$this->bindInterceptor(
$this->matcher->any(),
$this->matcher->any(),
[F... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeTyreInterface.php | tests/di/Fake/FakeTyreInterface.php | <?php
declare(strict_types=1);
namespace Ray\Di;
interface FakeTyreInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeRenameModule.php | tests/di/Fake/FakeRenameModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeRenameModule extends AbstractModule
{
protected function configure()
{
$this->rename(FakeRobotInterface::class, 'original');
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeToBindModule.php | tests/di/Fake/FakeToBindModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeToBindModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeRobotInterface::class)->to(FakeRobot::class);
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeUntargetModule.php | tests/di/Fake/FakeUntargetModule.php | <?php
declare(strict_types=1);
/**
* This file is part of the _package_ package
*/
namespace Ray\Di;
class FakeUntargetModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeUntargetChild::class);
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeGearStickProvider.php | tests/di/Fake/FakeGearStickProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use InvalidArgumentException;
class FakeGearStickProvider implements ProviderInterface
{
/** @var InjectionPointInterface */
private $ip;
public function __construct(InjectionPointInterface $ip)
{
$this->ip = $ip;
}
public function g... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAssistedDb.php | tests/di/Fake/FakeAssistedDb.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeAssistedDb extends FakeAbstractDb
{
public $dbId;
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeHandleBar.php | tests/di/Fake/FakeHandleBar.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Inject;
class FakeHandleBar
{
public $rightMirror;
public $leftMirror;
#[Inject]
public function setMirrors(#[FakeRight] FakeMirrorInterface $rightMirror): void
{
$this->rightMirror = $rightMirror;
}
#[Inject]
p... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeTyre.php | tests/di/Fake/FakeTyre.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeTyre implements FakeTyreInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoInterceptor4.php | tests/di/Fake/FakeAnnoInterceptor4.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class FakeAnnoInterceptor4 implements MethodInterceptor
{
public function invoke(MethodInvocation $invocation)
{
FakeAnnoClass::$order[] = self::class;
return $invocation->proceed()... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAssistedInjectDb.php | tests/di/Fake/FakeAssistedInjectDb.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Assisted;
use Ray\Di\Di\Inject;
class FakeAssistedInjectDb
{
/**
* @return array [int, FakeAbstractDb]
*/
public function getUser($id, #[Inject] ?FakeAbstractDb $db = null)
{
return [$id, $db];
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeUnNamedModule.php | tests/di/Fake/FakeUnNamedModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeUnNamedModule extends AbstractModule
{
protected function configure(): void
{
$this->bind(FakeUnNamedClass::class);
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAbstractClass.php | tests/di/Fake/FakeAbstractClass.php | <?php
declare(strict_types=1);
namespace Ray\Di;
abstract class FakeAbstractClass
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeBcConstructorQualifierClass.php | tests/di/Fake/FakeBcConstructorQualifierClass.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Annotation\FakeQualifierOnly;
class FakeBcConstructorQualifierClass
{
/**
* Constructor with method-level Qualifier-only attribute (no InjectInterface)
* This should trigger BC parameter qualifier for constructors
*/
#[FakeQualifierO... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeContextualProvider.php | tests/di/Fake/FakeContextualProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeContextualProvider implements ProviderInterface, SetContextInterface
{
private $context;
/**
* {@inheritdoc}
*/
public function setContext($context)
{
$this->context = $context;
}
public function get()
{
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakePhp8HandleProvider.php | tests/di/Fake/FakePhp8HandleProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Inject;
use Ray\Di\Di\Named;
class FakePhp8HandleProvider implements ProviderInterface
{
private $logo;
public function __construct(#[Named('logo')] $logo = 'nardi')
{
$this->logo = $logo;
}
public function get()
{
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeModuleInModuleOverride.php | tests/di/Fake/FakeModuleInModuleOverride.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeModuleInModuleOverride extends AbstractModule
{
protected function configure()
{
$this->install(new FakeInstanceBindModuleOneTo3(new FakeInstanceBindModule()));
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAop.php | tests/di/Fake/FakeAop.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeAop implements FakeAopInterface
{
public function returnSame($a)
{
return $a;
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakelNoConstructorCallModule.php | tests/di/Fake/FakelNoConstructorCallModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakelNoConstructorCallModule extends AbstractModule
{
public function __construct()
{
}
public function configure()
{
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeRightLeg.php | tests/di/Fake/FakeRightLeg.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeRightLeg implements FakeLegInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeHandle.php | tests/di/Fake/FakeHandle.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeHandle implements FakeHandleInterface
{
public $logo;
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeWalkRobotLegProvider.php | tests/di/Fake/FakeWalkRobotLegProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use InvalidArgumentException;
class FakeWalkRobotLegProvider implements ProviderInterface
{
/** @var InjectionPointInterface */
private $ip;
public function __construct(InjectionPointInterface $ip)
{
$this->ip = $ip;
}
public functio... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeEngine3.php | tests/di/Fake/FakeEngine3.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeEngine3 implements FakeEngineInterface
{
public function foo()
{
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeWalkRobotModule.php | tests/di/Fake/FakeWalkRobotModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeWalkRobotModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeLegInterface::class)->toProvider(FakeWalkRobotLegProvider::class);
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoInterceptor3.php | tests/di/Fake/FakeAnnoInterceptor3.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class FakeAnnoInterceptor3 implements MethodInterceptor
{
public function invoke(MethodInvocation $invocation)
{
FakeAnnoClass::$order[] = self::class;
return $invocation->proceed()... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopGrapherModule.php | tests/di/Fake/FakeAopGrapherModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeAopGrapherModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeAopInterface::class)->to(FakeAopGrapher::class);
$this->bindInterceptor(
$this->matcher->any(),
$this->matcher->any(),
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeMirrorRight.php | tests/di/Fake/FakeMirrorRight.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeMirrorRight implements FakeMirrorInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeBcParameterQualifierClass.php | tests/di/Fake/FakeBcParameterQualifierClass.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Annotation\FakeInjectOne;
use Ray\Di\Di\Inject;
class FakeBcParameterQualifierClass
{
public $singleParam;
public $multipleParams1;
public $multipleParams2;
public $singleParamWithQualifier;
public $singleParamWithInjectOnly;
public... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeConcreteClass.php | tests/di/Fake/FakeConcreteClass.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeConcreteClass
{
public function __construct(FakeAbstractClass $class)
{
unset($class);
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoMethod3.php | tests/di/Fake/FakeAnnoMethod3.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Attribute;
#[Attribute(Attribute::TARGET_METHOD)]
class FakeAnnoMethod3
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeOnionInterceptor2.php | tests/di/Fake/FakeOnionInterceptor2.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class FakeOnionInterceptor2 implements MethodInterceptor
{
public function invoke(MethodInvocation $invocation)
{
return $invocation->proceed();
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeInjectionPoint.php | tests/di/Fake/FakeInjectionPoint.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Named;
use ReflectionParameter;
class FakeInjectionPoint implements ProviderInterface
{
public $ip;
public function __construct(#[Named('aa')] ReflectionParameter $ip)
{
$this->ip = $ip;
}
public function get()
{
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeConstantInterface.php | tests/di/Fake/FakeConstantInterface.php | <?php
declare(strict_types=1);
namespace Ray\Di;
interface FakeConstantInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopInterface.php | tests/di/Fake/FakeAopInterface.php | <?php
declare(strict_types=1);
namespace Ray\Di;
interface FakeAopInterface
{
public function returnSame($a);
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeInternalTypeModule.php | tests/di/Fake/FakeInternalTypeModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use stdClass;
use function fopen;
class FakeInternalTypeModule extends AbstractModule
{
protected function configure()
{
$this->bind('')->annotatedWith('type-bool')->toInstance(false);
$this->bind('')->annotatedWith('type-int')->toInstance(1)... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeClassWithBcParameterQualifier.php | tests/di/Fake/FakeClassWithBcParameterQualifier.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Annotation\FakeInjectOne;
class FakeClassWithBcParameterQualifier
{
public $gearStick;
/**
* Method-level #[FakeInjectOne] without parameter-level qualifier
* BcParameterQualifier should apply FakeInjectOne to the parameter
*/
#... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeOnionInterceptor4.php | tests/di/Fake/FakeOnionInterceptor4.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Aop\MethodInterceptor;
use Ray\Aop\MethodInvocation;
class FakeOnionInterceptor4 implements MethodInterceptor
{
public function invoke(MethodInvocation $invocation)
{
return $invocation->proceed();
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeMultiBindingAnnotation.php | tests/di/Fake/FakeMultiBindingAnnotation.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Set;
use Ray\Di\MultiBinding\Map;
final class FakeMultiBindingAnnotation
{
/** @var Map<FakeEngineInterface> */
public $engines;
/** @var Map<FakeRobotInterface> */
public $robots;
public function __construct(
#[Set(FakeEn... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAssistedDbProvider.php | tests/di/Fake/FakeAssistedDbProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeAssistedDbProvider implements ProviderInterface
{
/** @var MethodInvocationProvider */
private $invocationProvider;
public function __construct(MethodInvocationProvider $invocationProvider)
{
$this->invocationProvider = $invocationPr... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeRobotProvider.php | tests/di/Fake/FakeRobotProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeRobotProvider implements ProviderInterface
{
public function get()
{
return new FakeRobot();
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeRobotInterface.php | tests/di/Fake/FakeRobotInterface.php | <?php
declare(strict_types=1);
namespace Ray\Di;
interface FakeRobotInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeToBindInvalidClassModule.php | tests/di/Fake/FakeToBindInvalidClassModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeToBindInvalidClassModule extends AbstractModule
{
protected function configure()
{
$this->bind('\Ray\Di\Mock\Dependency\RobotInterface')->to('InvalidClassXXX');
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeLeftLeg.php | tests/di/Fake/FakeLeftLeg.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeLeftLeg implements FakeLegInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeCarEngineModule.php | tests/di/Fake/FakeCarEngineModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeCarEngineModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeEngine::class)->to(FakeCarEngine::class);
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeHandleProvider.php | tests/di/Fake/FakeHandleProvider.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Inject;
use Ray\Di\Di\Named;
class FakeHandleProvider implements ProviderInterface
{
private $logo;
#[Inject]
public function __construct(#[Named('logo')] $logo = 'nardi')
{
$this->logo = $logo;
}
public function get()
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoOrderClass.php | tests/di/Fake/FakeAnnoOrderClass.php | <?php
declare(strict_types=1);
namespace Ray\Di;
#[FakeAnnoClass]
class FakeAnnoOrderClass
{
#[FakeAnnoMethod1]
#[FakeAnnoMethod2]
#[FakeAnnoMethod3]
public function get()
{
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeEngine.php | tests/di/Fake/FakeEngine.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeEngine implements FakeEngineInterface
{
public function foo()
{
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeMultiBindingConsumer.php | tests/di/Fake/FakeMultiBindingConsumer.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Set;
use Ray\Di\MultiBinding\Map;
final class FakeMultiBindingConsumer
{
/**
* @param Map<FakeEngineInterface> $engines
* @param Map<FakeRobotInterface> $robots
*/
public function __construct(
#[Set(FakeEngineInterface::c... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeMirrorInterface.php | tests/di/Fake/FakeMirrorInterface.php | <?php
declare(strict_types=1);
namespace Ray\Di;
interface FakeMirrorInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeBuiltin.php | tests/di/Fake/FakeBuiltin.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeBuiltin
{
public $injector;
public function __construct(InjectorInterface $Injector)
{
$this->injector = $Injector;
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoMethod2.php | tests/di/Fake/FakeAnnoMethod2.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Attribute;
#[Attribute(Attribute::TARGET_METHOD)]
class FakeAnnoMethod2
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoModule.php | tests/di/Fake/FakeAnnoModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
class FakeAnnoModule extends AbstractModule
{
protected function configure()
{
$this->bindInterceptor(
$this->matcher->any(),
$this->matcher->annotatedWith(FakeAnnoMethod1::class),
[FakeAnnoInterceptor1::class]
... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeUntargetChild.php | tests/di/Fake/FakeUntargetChild.php | <?php
declare(strict_types=1);
/**
* This file is part of the _package_ package
*/
namespace Ray\Di;
class FakeUntargetChild
{
public $val;
public function __construct($val)
{
$this->val = $val;
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeInternalTypes.php | tests/di/Fake/FakeInternalTypes.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Named;
class FakeInternalTypes
{
public $bool;
public $int;
public $string;
public $array;
public $callable;
public function __construct(
#[Named('type-bool')] bool $bool,
#[Named('type-int')] int $int,
#... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeRight.php | tests/di/Fake/FakeRight.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Attribute;
use Ray\Di\Di\Qualifier;
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER)]
#[Qualifier]
class FakeRight
{
public function __construct(
public $value = null
) {
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeHardtopInterface.php | tests/di/Fake/FakeHardtopInterface.php | <?php
declare(strict_types=1);
namespace Ray\Di;
interface FakeHardtopInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeSetNotFoundWithMap.php | tests/di/Fake/FakeSetNotFoundWithMap.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Di\Set;
use Ray\Di\MultiBinding\Map;
final class FakeSetNotFoundWithMap
{
/**
* @var Map<FakeEngineInterface>
*/
public $engines;
/**
* This property should Set annotated for setProviderButNotSetFound method.
* SetNotFound... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeUntargetToIntanceModule.php | tests/di/Fake/FakeUntargetToIntanceModule.php | <?php
declare(strict_types=1);
/**
* This file is part of the _package_ package
*/
namespace Ray\Di;
class FakeUntargetToIntanceModule extends AbstractModule
{
protected function configure()
{
$instance = new FakeUntarget(new FakeUntargetChild(1));
$this->bind(FakeUntarget::class)->toInsta... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeLeft.php | tests/di/Fake/FakeLeft.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Attribute;
use Ray\Di\Di\Qualifier;
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER)]
#[Qualifier]
class FakeLeft
{
public function __construct(
public $value = null
) {
}
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakePdoModule.php | tests/di/Fake/FakePdoModule.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use PDO;
class FakePdoModule extends AbstractModule
{
protected function configure()
{
$this->bind(PDO::class)->in(Scope::SINGLETON);
$this->bind(PDO::class)->toConstructor(PDO::class, ['dsn' => 'pdo_dsn']);
$this->bind()->annotatedWit... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakePhp8Car.php | tests/di/Fake/FakePhp8Car.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Annotation\FakeInjectOne;
use Ray\Di\Annotation\FakeNotQualifer;
use Ray\Di\Di\Inject;
use Ray\Di\Di\Named;
use Ray\Di\Di\PostConstruct;
use Ray\Di\Annotation\FakeLeft;
use Ray\Di\Annotation\FakeRight;
class FakePhp8Car implements FakeCarInterface
{
pu... | php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoMethod1.php | tests/di/Fake/FakeAnnoMethod1.php | <?php
declare(strict_types=1);
namespace Ray\Di;
use Attribute;
#[Attribute(Attribute::TARGET_METHOD)]
class FakeAnnoMethod1
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
ray-di/Ray.Di | https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeLegInterface.php | tests/di/Fake/FakeLegInterface.php | <?php
declare(strict_types=1);
namespace Ray\Di;
interface FakeLegInterface
{
}
| php | MIT | 2a03a153559fbdd94544e1741a25972fc2c9947a | 2026-01-05T02:18:29.568252Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.