@@ -64,7 +64,7 @@ public function __construct(QueueingDispatcher $dispatcher, $jobsToFake = [])
6464 public function assertDispatched ($ command , $ callback = null )
6565 {
6666 if ($ command instanceof Closure) {
67- [$ command , $ callback ] = [$ this ->firstParameterType ($ command ), $ command ];
67+ [$ command , $ callback ] = [$ this ->firstClosureParameterType ($ command ), $ command ];
6868 }
6969
7070 if (is_numeric ($ callback )) {
@@ -106,7 +106,7 @@ public function assertDispatchedTimes($command, $times = 1)
106106 public function assertNotDispatched ($ command , $ callback = null )
107107 {
108108 if ($ command instanceof Closure) {
109- [$ command , $ callback ] = [$ this ->firstParameterType ($ command ), $ command ];
109+ [$ command , $ callback ] = [$ this ->firstClosureParameterType ($ command ), $ command ];
110110 }
111111
112112 PHPUnit::assertTrue (
@@ -126,7 +126,7 @@ public function assertNotDispatched($command, $callback = null)
126126 public function assertDispatchedAfterResponse ($ command , $ callback = null )
127127 {
128128 if ($ command instanceof Closure) {
129- [$ command , $ callback ] = [$ this ->firstParameterType ($ command ), $ command ];
129+ [$ command , $ callback ] = [$ this ->firstClosureParameterType ($ command ), $ command ];
130130 }
131131
132132 if (is_numeric ($ callback )) {
@@ -166,7 +166,7 @@ public function assertDispatchedAfterResponseTimes($command, $times = 1)
166166 public function assertNotDispatchedAfterResponse ($ command , $ callback = null )
167167 {
168168 if ($ command instanceof Closure) {
169- [$ command , $ callback ] = [$ this ->firstParameterType ($ command ), $ command ];
169+ [$ command , $ callback ] = [$ this ->firstClosureParameterType ($ command ), $ command ];
170170 }
171171
172172 PHPUnit::assertCount (
0 commit comments