Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iwex committed Apr 27, 2017
1 parent 139834c commit 013b475
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/Events/EventsDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Illuminate\Tests\Events;

use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Events\Dispatcher;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class EventsDispatcherTest extends TestCase
{
Expand Down Expand Up @@ -240,26 +240,26 @@ public function testBothClassesAndInterfacesWork()
$this->assertSame('fooo', $_SERVER['__event.test1']);
$this->assertSame('baar', $_SERVER['__event.test2']);
}

public function testShouldBroadcastSuccess()
{
$d = m::mock(Dispatcher::class);

$d->makePartial()->shouldAllowMockingProtectedMethods();

$event = new BroadcastEvent();

$this->assertTrue($d->shouldBroadcast([$event]));
}

public function testShouldBroadcastFail()
{
$d = m::mock(Dispatcher::class);

$d->makePartial()->shouldAllowMockingProtectedMethods();

$event = new BroadcastFalseCondition();

$this->assertFalse($d->shouldBroadcast([$event]));
}
}
Expand Down Expand Up @@ -304,7 +304,7 @@ public function broadcastOn()
{
return ['test-channel'];
}

public function broadcastWhen()
{
return true;
Expand All @@ -317,4 +317,4 @@ public function broadcastWhen()
{
return false;
}
}
}

0 comments on commit 013b475

Please sign in to comment.