Test Failed
Pull Request — master (#981)
by Maxim
13:13 queued 04:14
created
src/Core/tests/Internal/Config/StateBinderTest.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $binder = $this->constructor->get('binder', BinderInterface::class);
48 48
         $factory = $this->constructor->get('factory', FactoryInterface::class);
49 49
 
50
-        $this->bindSingleton('test', new class implements SingletonInterface {});
50
+        $this->bindSingleton('test', new class implements SingletonInterface{});
51 51
         $factory->make('test');
52 52
 
53 53
         $this->assertTrue($binder->hasInstance('test'));
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
     public function testHasInstanceAfterMakeWithoutAliasInScope(): void
57 57
     {
58 58
         $container = new Container();
59
-        $container->bindSingleton('test', new class implements SingletonInterface {});
59
+        $container->bindSingleton('test', new class implements SingletonInterface{});
60 60
         $container->make('test');
61 61
 
62
-        $container->runScoped(function (BinderInterface $binder) {
62
+        $container->runScoped(function (BinderInterface $binder){
63 63
             $this->assertTrue($binder->hasInstance('test'));
64 64
         });
65 65
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $container->bindSingleton('test', SampleClass::class);
82 82
         $container->make('test');
83 83
 
84
-        $container->runScoped(function (BinderInterface $binder) {
84
+        $container->runScoped(function (BinderInterface $binder){
85 85
             $this->assertTrue($binder->hasInstance('test'));
86 86
         });
87 87
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $container->bindSingleton('bar', 'foo');
111 111
         $container->make('bar');
112 112
 
113
-        $container->runScoped(function (BinderInterface $binder) {
113
+        $container->runScoped(function (BinderInterface $binder){
114 114
             $this->assertTrue($binder->hasInstance('test'));
115 115
         });
116 116
     }
Please login to merge, or discard this patch.
Braces   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,9 @@  discard block
 block discarded – undo
47 47
         $binder = $this->constructor->get('binder', BinderInterface::class);
48 48
         $factory = $this->constructor->get('factory', FactoryInterface::class);
49 49
 
50
-        $this->bindSingleton('test', new class implements SingletonInterface {});
50
+        $this->bindSingleton('test', new class implements SingletonInterface
51
+        {
52
+});
51 53
         $factory->make('test');
52 54
 
53 55
         $this->assertTrue($binder->hasInstance('test'));
@@ -56,10 +58,13 @@  discard block
 block discarded – undo
56 58
     public function testHasInstanceAfterMakeWithoutAliasInScope(): void
57 59
     {
58 60
         $container = new Container();
59
-        $container->bindSingleton('test', new class implements SingletonInterface {});
61
+        $container->bindSingleton('test', new class implements SingletonInterface
62
+        {
63
+});
60 64
         $container->make('test');
61 65
 
62
-        $container->runScoped(function (BinderInterface $binder) {
66
+        $container->runScoped(function (BinderInterface $binder)
67
+        {
63 68
             $this->assertTrue($binder->hasInstance('test'));
64 69
         });
65 70
     }
@@ -81,7 +86,8 @@  discard block
 block discarded – undo
81 86
         $container->bindSingleton('test', SampleClass::class);
82 87
         $container->make('test');
83 88
 
84
-        $container->runScoped(function (BinderInterface $binder) {
89
+        $container->runScoped(function (BinderInterface $binder)
90
+        {
85 91
             $this->assertTrue($binder->hasInstance('test'));
86 92
         });
87 93
     }
@@ -110,7 +116,8 @@  discard block
 block discarded – undo
110 116
         $container->bindSingleton('bar', 'foo');
111 117
         $container->make('bar');
112 118
 
113
-        $container->runScoped(function (BinderInterface $binder) {
119
+        $container->runScoped(function (BinderInterface $binder)
120
+        {
114 121
             $this->assertTrue($binder->hasInstance('test'));
115 122
         });
116 123
     }
Please login to merge, or discard this patch.