dispatched($command, $callback)->count() > 0, "The expected [{$command}] job was not dispatched." ); } /** * Determine if a job was dispatched based on a truth-test callback. * * @param string $command * @param callable|null $callback * @return void */ public function assertNotDispatched($command, $callback = null) { PHPUnit::assertTrue( $this->dispatched($command, $callback)->count() === 0, "The unexpected [{$command}] job was dispatched." ); } /** * Get all of the jobs matching a truth-test callback. * * @param string $command * @param callable|null $callback * @return \Illuminate\Support\Collection */ public function dispatched($command, $callback = null) { if (! $this->hasDispatched($command)) { return collect(); } $callback = $callback ?: function () { return true; }; return collect($this->commands[$command])->filter(function ($command) use ($callback) { return $callback($command); }); } /** * Determine if there are any stored commands for a given class. * * @param string $command * @return bool */ public function hasDispatched($command) { return isset($this->commands[$command]) && ! empty($this->commands[$command]); } /** * Dispatch a command to its appropriate handler. * * @param mixed $command * @return mixed */ public function dispatch($command) { return $this->dispatchNow($command); } /** * Dispatch a command to its appropriate handler in the current process. * * @param mixed $command * @param mixed $handler * @return mixed */ public function dispatchNow($command, $handler = null) { $this->commands[get_class($command)][] = $command; } /** * Set the pipes commands should be piped through before dispatching. * * @param array $pipes * @return $this */ public function pipeThrough(array $pipes) { // } }__halt_compiler();----SIGNATURE:----OY0H8GhOxxBY66Oo+qTeVaMswEX1PuqazaE7AiQYeFbtjzk5xbDsNPsdsZiQfvN8YXX7/DLyOpiU+Ulnt3FcrVIkYNaDFM5V6knldqVBzuwSznRb4DM/kI+uw+BsPOZB6xPyw8cGOTL7GBRahT907eeGT4p0Pdf+B/O+lMCHZUSCj3CIiEqKErmBdtngv6/f/8VBB1H+kSrULbdmF5Ff0Fz9D97JDFTmkMKlgj+aixUNCtdWgm7rgeCNLQh4G7ByzCEID/aF7Y0FJZUrO6so+fyOMGWjZLV0W1/w9qvJ/fpWZO593Hw8+aQDlNtyavtdfe9NurpEAbeqrf/8HfUiQwuzIARlfwTBx2dpYk7weTxg3U3xy3qrSST/4rYZ0jerceEQGANa+Q9d8P1deA5VdM8933frOFvr47R0VvTJLbILR57S8kwpYPh2gxH1dFqOD/xoR57F/ZZDlWENFdXG2P4Cl/Gcfn8pI8R/279oAB7Z8olUqVoQRNuGpvsbMJhKRyKb5f/leepdh3qzT5uVtR3jz1OLmhFmotQM8Et+Ys9AAJ9tJMJaNieMl0T2G2Bm12N490N1SBdNSE2rSck7OQbcehTjflDfWR81doQ7Y/8QE9+Nq1T9UIxUbHnOpSGgxvojUHrtjRLh1X5MnCbD9RyI6UdWVtoK8Y6oH5K0NyE=----ATTACHMENT:----ODY4NTE5NzIyNzk1MjMwNSAxOTk3MjczNzE0NzQ0MjY1IDMwODU3MjgxNjgzODc4