22
33namespace Illuminate \Tests \Events ;
44
5- use Illuminate \Contracts \Broadcasting \ShouldBroadcast ;
65use Mockery as m ;
76use PHPUnit \Framework \TestCase ;
87use Illuminate \Events \Dispatcher ;
8+ use Illuminate \Contracts \Broadcasting \ShouldBroadcast ;
99
1010class EventsDispatcherTest extends TestCase
1111{
@@ -240,26 +240,26 @@ public function testBothClassesAndInterfacesWork()
240240 $ this ->assertSame ('fooo ' , $ _SERVER ['__event.test1 ' ]);
241241 $ this ->assertSame ('baar ' , $ _SERVER ['__event.test2 ' ]);
242242 }
243-
243+
244244 public function testShouldBroadcastSuccess ()
245245 {
246246 $ d = m::mock (Dispatcher::class);
247-
247+
248248 $ d ->makePartial ()->shouldAllowMockingProtectedMethods ();
249-
249+
250250 $ event = new BroadcastEvent ();
251-
251+
252252 $ this ->assertTrue ($ d ->shouldBroadcast ([$ event ]));
253253 }
254-
254+
255255 public function testShouldBroadcastFail ()
256256 {
257257 $ d = m::mock (Dispatcher::class);
258-
258+
259259 $ d ->makePartial ()->shouldAllowMockingProtectedMethods ();
260-
260+
261261 $ event = new BroadcastFalseCondition ();
262-
262+
263263 $ this ->assertFalse ($ d ->shouldBroadcast ([$ event ]));
264264 }
265265}
@@ -304,7 +304,7 @@ public function broadcastOn()
304304 {
305305 return ['test-channel ' ];
306306 }
307-
307+
308308 public function broadcastWhen ()
309309 {
310310 return true ;
@@ -317,4 +317,4 @@ public function broadcastWhen()
317317 {
318318 return false ;
319319 }
320- }
320+ }
0 commit comments