コード例 #1
0
ファイル: ContainerTest.php プロジェクト: viserio/container
 public function testResolveMethodFromString()
 {
     $container = new Container();
     $this->assertEquals('Hello', $container->resolveMethod(FactoryClass::class . '::staticCreate'));
     $this->assertEquals('Hello', $container->resolveMethod(FactoryClass::class . '::staticCreateWitArg', ['name' => 'Hello']));
 }