33use GetStream \StreamLaravel \StreamLaravelManager ;
44use 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