sent($mailable, $callback)->count() > 0, "The expected [{$mailable}] mailable was not sent." ); } /** * Determine if a mailable was not sent based on a truth-test callback. * * @param string $mailable * @param callable|null $callback * @return void */ public function assertNotSent($mailable, $callback = null) { PHPUnit::assertTrue( $this->sent($mailable, $callback)->count() === 0, "The unexpected [{$mailable}] mailable was sent." ); } /** * Assert that no mailables were sent. * * @return void */ public function assertNothingSent() { PHPUnit::assertEmpty($this->mailables, 'Mailables were sent unexpectedly.'); } /** * Get all of the mailables matching a truth-test callback. * * @param string $mailable * @param callable|null $callback * @return \Illuminate\Support\Collection */ public function sent($mailable, $callback = null) { if (! $this->hasSent($mailable)) { return collect(); } $callback = $callback ?: function () { return true; }; return $this->mailablesOf($mailable)->filter(function ($mailable) use ($callback) { return $callback($mailable); }); } /** * Determine if the given mailable has been sent. * * @param string $mailable * @return bool */ public function hasSent($mailable) { return $this->mailablesOf($mailable)->count() > 0; } /** * Get all of the mailed mailables for a given type. * * @param string $type * @return \Illuminate\Support\Collection */ protected function mailablesOf($type) { return collect($this->mailables)->filter(function ($mailable) use ($type) { return $mailable instanceof $type; }); } /** * Begin the process of mailing a mailable class instance. * * @param mixed $users * @return \Illuminate\Mail\PendingMail */ public function to($users) { return (new PendingMailFake($this))->to($users); } /** * Begin the process of mailing a mailable class instance. * * @param mixed $users * @return \Illuminate\Mail\PendingMail */ public function bcc($users) { return (new PendingMailFake($this))->bcc($users); } /** * Send a new message when only a raw text part. * * @param string $text * @param \Closure|string $callback * @return int */ public function raw($text, $callback) { // } /** * Send a new message using a view. * * @param string|array $view * @param array $data * @param \Closure|string $callback * @return void */ public function send($view, array $data = [], $callback = null) { if (! $view instanceof Mailable) { return; } $this->mailables[] = $view; } /** * Queue a new e-mail message for sending. * * @param string|array $view * @param array $data * @param \Closure|string $callback * @param string|null $queue * @return mixed */ public function queue($view, array $data = [], $callback = null, $queue = null) { $this->send($view); } /** * Get the array of failed recipients. * * @return array */ public function failures() { // } }__halt_compiler();----SIGNATURE:----vQilFIu9dlCHwrXPaGBNUSL2ZymaR78q2GJFvDLZJl1fW0jZqO2re3ID+UGiWFDpOrQCrGtkQ9EgrluxwjX3GJTETThNfzzasIk+He4p4AODy8XeDBZa6Rd5HXRn+1TkcuG2SEALw9OaNXAlbVuMZ11Mb5Abedf6gDKxnG0R7KGzWOIQbyUEUs+sE7cpbe3POH1oQiFoIi+qffh0sCaccbnyUFyIabKx7hKN6X1rH83OKvCiiqGW7/gzB4+Bz8EZhRaqHYOu2VfF14bl0N4M7tvrQDbRlJ0gtyeSos19E94kr2+ekJFGKn4k51BR0YrUdeddpl6ALeYUN5QQq80iVR5ruLZAVI2d3gN3oRimsL4G6NdqGvrxOkCumy8BONwW6mqcN3Ptkkqt2WFbP9DLIyR6J7QhiYnn+4uIsuvpH3yf5hiycFhzDvyK848YwVbcJjI4yI6kil5N1Jo/pqN9pEJpXiOJMysN0e2M0OS5OLqexODCbeKTbpdvGU/ua76DORAv2nBME+qtmHo4oFRWO/GGUcy2bSPiRYAhYVG+ljn9N7EWAZK9xetq5hRB0IFI2qWc4ewhvbTzvijuq1L0TXMDir7Qb+HUMLCSbANY8ZZxtdS3gtdijEiKaISLG3uOGCA7Ok0SfK3lSsZgrzGiW1otP8IibD74mHQEhUDCK+s=----ATTACHMENT:----ODA1NTY0MTY5OTM4NDc5NCA3MTIzNjU2MTg5OTY5NTU3IDU3NjI3NjMzODk2MjgxMjQ=