Skip to content

Commit cd025c5

Browse files
Fix unused imports and class layout of test cases
1 parent b5f9ec4 commit cd025c5

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

tests/ActivityTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22

3-
use GetStream\StreamLaravel\StreamLaravelManager;
43
use GetStream\StreamLaravel\Eloquent\Activity;
54
use GetStream\Stream\Feed;
6-
use Mockery as m;
75

86
class _Activity extends Activity
97
{

tests/EnrichedActivityTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<?php
22

33
use GetStream\StreamLaravel\EnrichedActivity;
4-
use Mockery as m;
5-
64

75
class EnrichedActivityTest extends \PHPUnit_Framework_TestCase
86
{
9-
107
public function testArrayImplementation()
118
{
129
$activity = new EnrichedActivity(array('actor' => 'stream'));
@@ -39,5 +36,4 @@ public function testIterable()
3936
}
4037
$this->assertSame($sum, 4);
4138
}
42-
4339
}

tests/ManagerTest.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
use GetStream\StreamLaravel\StreamLaravelManager;
44
use Mockery as m;
55

6-
class ManagerTest extends \PHPUnit_Framework_TestCase
6+
class ManagerTest extends PHPUnit_Framework_TestCase
77
{
8-
9-
public function setUp(){
8+
public function setUp()
9+
{
1010
parent::setUp();
1111
$config = m::mock('ConfigMock');
1212
$config->shouldReceive('get')->once()->with('stream-laravel::user_feed')
@@ -22,12 +22,14 @@ public function setUp(){
2222
$this->manager = new StreamLaravelManager('key', 'secret', $config);
2323
}
2424

25-
public function testDefaultTimeout(){
25+
public function testDefaultTimeout()
26+
{
2627
$client = $this->manager->getClient();
2728
$this->assertSame($client->timeout, 3);
2829
}
2930

30-
public function testCustomTimeout(){
31+
public function testCustomTimeout()
32+
{
3133
parent::setUp();
3234
$config = m::mock('ConfigMock');
3335
$config->shouldReceive('get')->once()->with('stream-laravel::user_feed')
@@ -47,7 +49,8 @@ public function testCustomTimeout(){
4749
}
4850

4951

50-
public function testGetUserFeed(){
52+
public function testGetUserFeed()
53+
{
5154
$feed = $this->manager->getUserFeed(42);
5255
$this->assertSame($feed->getId(), 'user:42');
5356
}
@@ -86,5 +89,4 @@ public function testActivityCreated()
8689
public function testActivityDeleted()
8790
{
8891
}
89-
9092
}

0 commit comments

Comments
 (0)