Completed
Push — master ( 64316b...504ed7 )
by Ivannis Suárez
02:48
created
Tests/Units/DelegateTests.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public function testFromClosure()
47 47
     {
48 48
         $this
49
-            ->given($closure = function () {
49
+            ->given($closure = function() {
50 50
 
51 51
             })
52 52
             ->when($delegate = Delegate::fromClosure($closure))
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 ->object($delegate)
101 101
                 ->isInstanceOf(Delegate::class)
102 102
                 ->exception(
103
-                    function () {
103
+                    function() {
104 104
                         Delegate::fromFunction('foo');
105 105
                     }
106 106
                 )->isInstanceOf(\InvalidArgumentException::class)
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function testInvoke()
114 114
     {
115 115
         $this
116
-            ->given($closure = function ($value = null) {
116
+            ->given($closure = function($value = null) {
117 117
                 return $value;
118 118
             })
119 119
             ->when($delegate = Delegate::fromClosure($closure))
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                     ->isEqualTo('text-sufix')
131 131
             ->given($delegate = Delegate::fromFunction('array_filter'))
132 132
             ->then()
133
-                ->array($delegate(['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5], function ($value) {
133
+                ->array($delegate(['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5], function($value) {
134 134
                     return $value % 2 === 0;
135 135
                 }))
136 136
                     ->isEqualTo(['b' => 2, 'd' => 4])
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function testReflection()
144 144
     {
145 145
         $this
146
-            ->given($closure = function ($value = null) {
146
+            ->given($closure = function($value = null) {
147 147
                 return $value;
148 148
             })
149 149
             ->when($reflection = Delegate::fromClosure($closure)->reflection())
Please login to merge, or discard this patch.